vulkan: fix graphics state after a texture/buffer readback.

Fixes #2296.
This commit is contained in:
Sasha Szpakowski
2026-03-23 18:39:50 -03:00
parent 7d41f3ad30
commit ab8dfaa1da
+3 -1
View File
@@ -1469,9 +1469,11 @@ void Graphics::startRecordingGraphicsCommands()
}
// 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 one is active, the state (aside from the active pipeline) shouldn't need updating.
if (!isRenderTargetActive())
setDefaultRenderPass();
else
renderPassState.pipeline = VK_NULL_HANDLE;
if (defaultVertexBuffer)
{