VulkanDevice: Fix download inside render pass

This commit is contained in:
Stenzek 2024-08-11 20:44:16 +10:00
parent 290c44f4c0
commit 5f8082734e
No known key found for this signature in database

View file

@ -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)