mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-02-02 04:25:37 +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.
|
// Need to execute command buffer.
|
||||||
if (dev.GetCurrentFenceCounter() == m_copy_fence_counter)
|
if (dev.GetCurrentFenceCounter() == m_copy_fence_counter)
|
||||||
|
{
|
||||||
|
if (dev.InRenderPass())
|
||||||
|
dev.EndRenderPass();
|
||||||
dev.SubmitCommandBuffer(true);
|
dev.SubmitCommandBuffer(true);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
dev.WaitForFenceCounter(m_copy_fence_counter);
|
dev.WaitForFenceCounter(m_copy_fence_counter);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void VulkanDownloadTexture::SetDebugName(std::string_view name)
|
void VulkanDownloadTexture::SetDebugName(std::string_view name)
|
||||||
|
|
Loading…
Reference in a new issue