mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
vulkan: fix graphics state after a texture/buffer readback.
Fixes #2296.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user