From 64182b76dcd843ab6e0f37c3f49cc68ebe39fa05 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Sun, 20 Sep 2026 20:58:18 -0400 Subject: [PATCH] [MG_Backend] (Magma): the indirect client-array staging block is monolith-only --- MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.cpp b/MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.cpp index 80295d96..da028bda 100644 --- a/MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.cpp +++ b/MobileGL/MG_Backend/DirectVulkan/Renderer/VulkanRenderer.cpp @@ -13092,7 +13092,9 @@ void main() { DrawCmdParam vertexRange{}; vertexRange.vertexCount = 0; 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(); Bool clientArray = false; if (currentVAO) {