mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-22 08:15:39 +00:00
VulkanDevice: Fix download inside render pass
This commit is contained in:
parent
290c44f4c0
commit
5f8082734e
|
@ -1158,9 +1158,15 @@ void VulkanDownloadTexture::Flush()
|
|||
|
||||
// Need to execute command buffer.
|
||||
if (dev.GetCurrentFenceCounter() == m_copy_fence_counter)
|
||||
{
|
||||
if (dev.InRenderPass())
|
||||
dev.EndRenderPass();
|
||||
dev.SubmitCommandBuffer(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
dev.WaitForFenceCounter(m_copy_fence_counter);
|
||||
}
|
||||
}
|
||||
|
||||
void VulkanDownloadTexture::SetDebugName(std::string_view name)
|
||||
|
|
Loading…
Reference in a new issue