mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 22:50:45 +00:00
Move nvrhi::Device->waitForIdle() back to GL_BlockingSwapBuffers()
This commit is contained in:
parent
74c8a9f94e
commit
c48346c551
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue