VideoBackends:Vulkan: Synchronize presentation

Synchronize with the submission thread
if the last present is not done yet.
This commit is contained in:
Robin Kertels
2022-11-07 02:20:22 +01:00
parent c931529e7a
commit 3beb22ed7f
3 changed files with 6 additions and 0 deletions

View File

@ -261,6 +261,9 @@ void Renderer::BindBackbuffer(const ClearColor& clear_color)
{
StateTracker::GetInstance()->EndRenderPass();
if (!g_command_buffer_mgr->CheckLastPresentDone())
g_command_buffer_mgr->WaitForWorkerThreadIdle();
// Handle host window resizes.
CheckForSurfaceChange();
CheckForSurfaceResize();