vulkan: fix graphics state if readbackBuffer is called while a canvas is active.

This commit is contained in:
Sasha Szpakowski
2025-08-01 21:25:38 -03:00
parent 1c8d34ac27
commit e5055d3cc2
+4 -1
View File
@@ -1468,7 +1468,10 @@ void Graphics::startRecordingGraphicsCommands()
fakeBackbuffer.set((Texture*)newTexture(settings, nullptr), Acquire::NORETAIN);
}
setDefaultRenderPass();
// Update the pending render pass state with current backbuffer data if no RT is active.
// If one is active, the state shouldn't need updating.
if (!isRenderTargetActive())
setDefaultRenderPass();
if (defaultVertexBuffer)
{