mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
vulkan: fix graphics state if readbackBuffer is called while a canvas is active.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user