From 0b644a1648bceb77156eeec32cfe4cd71b31491a Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Fri, 4 Jun 2021 02:58:08 +0200 Subject: [PATCH] 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 --- neo/renderer/RenderSystem_init.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neo/renderer/RenderSystem_init.cpp b/neo/renderer/RenderSystem_init.cpp index f14bb059..2a8d0f43 100644 --- a/neo/renderer/RenderSystem_init.cpp +++ b/neo/renderer/RenderSystem_init.cpp @@ -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 ) {