Vulkan: Fix waiting on non-existant fence when reading back

This commit is contained in:
Stenzek 2018-01-12 13:17:22 +10:00
parent 28176d0117
commit 47f453d7aa
2 changed files with 1 additions and 3 deletions

View File

@ -377,9 +377,6 @@ void CommandBufferManager::OnCommandBufferExecuted(size_t index)
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
for (auto& it : resources.cleanup_resources)
it();

View File

@ -497,6 +497,7 @@ void VKStagingTexture::Flush()
{
// WaitForFence should fire the callback.
g_command_buffer_mgr->WaitForFence(m_flush_fence);
m_flush_fence = VK_NULL_HANDLE;
}
else
{