From ab8dfaa1da571d6ebb09ff1fccb91e5039fce7a0 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Mon, 23 Mar 2026 18:39:50 -0300 Subject: [PATCH] vulkan: fix graphics state after a texture/buffer readback. Fixes #2296. --- src/modules/graphics/vulkan/Graphics.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/graphics/vulkan/Graphics.cpp b/src/modules/graphics/vulkan/Graphics.cpp index cbc348bea..78b069736 100644 --- a/src/modules/graphics/vulkan/Graphics.cpp +++ b/src/modules/graphics/vulkan/Graphics.cpp @@ -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) {