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
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();