Move nvrhi::Device->waitForIdle() back to GL_BlockingSwapBuffers()

This commit is contained in:
Robert Beckebans 2022-11-20 13:37:10 +01:00
parent 74c8a9f94e
commit c48346c551

View file

@ -1575,9 +1575,6 @@ void idRenderBackend::GL_EndFrame()
deviceManager->GetDevice()->executeCommandList( commandList );
// Make sure that all frames have finished rendering
deviceManager->GetDevice()->waitForIdle();
// required for Vulkan: transition our swap image to present
deviceManager->EndFrame();
@ -1594,6 +1591,9 @@ We want to exit this with the GPU idle, right at vsync
*/
void idRenderBackend::GL_BlockingSwapBuffers()
{
// Make sure that all frames have finished rendering
deviceManager->GetDevice()->waitForIdle();
// Release all in-flight references to the render targets
deviceManager->GetDevice()->runGarbageCollection();