mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 22:50:45 +00:00
Skip GL_BlockingSwapBuffers() sync during shutdown when in Doom 3 mode (com_smp = -1)
This commit is contained in:
parent
7a7571f88a
commit
8d57d5399b
1 changed files with 7 additions and 1 deletions
|
@ -2245,6 +2245,8 @@ idRenderSystemLocal::Shutdown
|
|||
*/
|
||||
void idRenderSystemLocal::Shutdown()
|
||||
{
|
||||
extern idCVar com_smp;
|
||||
|
||||
common->Printf( "idRenderSystem::Shutdown()\n" );
|
||||
|
||||
fonts.DeleteContents();
|
||||
|
@ -2270,7 +2272,11 @@ void idRenderSystemLocal::Shutdown()
|
|||
UnbindBufferObjects();
|
||||
|
||||
// SRS - wait for fence to hit before freeing any resources the GPU may be using, otherwise get Vulkan validation layer errors on shutdown
|
||||
backend.GL_BlockingSwapBuffers();
|
||||
// SRS - skip this step if we are in Doom 3 mode (com_smp = -1) which has already finished and presented
|
||||
if( com_smp.GetInteger() != -1 )
|
||||
{
|
||||
backend.GL_BlockingSwapBuffers();
|
||||
}
|
||||
|
||||
// free the vertex cache, which should have nothing allocated now
|
||||
vertexCache.Shutdown();
|
||||
|
|
Loading…
Reference in a new issue