From 666837c6204c55163bcfe20b83e543588d112ee2 Mon Sep 17 00:00:00 2001 From: James R Date: Thu, 16 Mar 2023 23:23:16 -0700 Subject: [PATCH] Call R_PrintTextureDuplicates on I_Quit too Fixes crash from thread terminating if the program exits before the title screen. --- src/sdl/i_system.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index 43099a4ff..23189b741 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -1457,6 +1457,11 @@ void I_Quit(void) if (metalrecording) G_StopMetalRecording(false); +#ifdef DEVELOP + // Join up with thread if waiting + R_PrintTextureDuplicates(); +#endif + D_QuitNetGame(); CL_AbortDownloadResume(); M_FreePlayerSetupColors();