Merge pull request #11262 from K0bin/present-sync

VideoBackends:Vulkan: Synchronize presentation
This commit is contained in:
Admiral H. Curtiss 2022-12-04 14:30:59 +01:00 committed by GitHub
commit c9f31ad6a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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();