Fix crashes on shutdown

idCommonLocal::VPrintf() wanted to call session->UpdateScreen() even though
the renderer was in the process of being shut down and that caused crashes
This commit is contained in:
Daniel Gibson 2021-06-04 02:58:08 +02:00
parent 2cff2ae137
commit 0b644a1648

View file

@ -2156,6 +2156,8 @@ idRenderSystemLocal::Shutdown
void idRenderSystemLocal::Shutdown( void ) {
common->Printf( "idRenderSystem::Shutdown()\n" );
common->SetRefreshOnPrint( false ); // without a renderer there's nothing to refresh
R_DoneFreeType( );
if ( glConfig.isInitialized ) {