mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-20 08:21:56 +09:00
[MG_Backend] (Magma): the indirect client-array staging block is monolith-only
This commit is contained in:
@@ -13092,7 +13092,9 @@ void main() {
|
|||||||
DrawCmdParam vertexRange{};
|
DrawCmdParam vertexRange{};
|
||||||
vertexRange.vertexCount = 0;
|
vertexRange.vertexCount = 0;
|
||||||
vertexRange.instanceCount = 1;
|
vertexRange.instanceCount = 1;
|
||||||
{
|
// MONOLITH ONLY: with a transport the frontend VAO is not this side's to read at all
|
||||||
|
// (the client owns those bytes and stages them itself), and this runs on the apply thread.
|
||||||
|
if (MG_Config::Transport == MG_Config::TransportMode::Monolith) {
|
||||||
const auto& currentVAO = MGB_CTX->GetBoundVertexArray();
|
const auto& currentVAO = MGB_CTX->GetBoundVertexArray();
|
||||||
Bool clientArray = false;
|
Bool clientArray = false;
|
||||||
if (currentVAO) {
|
if (currentVAO) {
|
||||||
|
|||||||
Reference in New Issue
Block a user