Vulkan: Fix waiting on non-existant fence when reading back
This commit is contained in:
parent
28176d0117
commit
47f453d7aa
|
@ -377,9 +377,6 @@ void CommandBufferManager::OnCommandBufferExecuted(size_t index)
|
||||||
backup_iter->second.second(resources.fence);
|
backup_iter->second.second(resources.fence);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const auto& iter : m_fence_point_callbacks)
|
|
||||||
iter.second.second(resources.fence);
|
|
||||||
|
|
||||||
// Clean up all objects pending destruction on this command buffer
|
// Clean up all objects pending destruction on this command buffer
|
||||||
for (auto& it : resources.cleanup_resources)
|
for (auto& it : resources.cleanup_resources)
|
||||||
it();
|
it();
|
||||||
|
|
|
@ -497,6 +497,7 @@ void VKStagingTexture::Flush()
|
||||||
{
|
{
|
||||||
// WaitForFence should fire the callback.
|
// WaitForFence should fire the callback.
|
||||||
g_command_buffer_mgr->WaitForFence(m_flush_fence);
|
g_command_buffer_mgr->WaitForFence(m_flush_fence);
|
||||||
|
m_flush_fence = VK_NULL_HANDLE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue