diff --git a/src/common/platform/win32/st_start.cpp b/src/common/platform/win32/st_start.cpp index 32aa3c1c6..f36371a9b 100644 --- a/src/common/platform/win32/st_start.cpp +++ b/src/common/platform/win32/st_start.cpp @@ -52,6 +52,7 @@ #include "printf.h" #include "startupinfo.h" #include "i_interface.h" +#include "texturemanager.h" // MACROS ------------------------------------------------------------------ @@ -607,6 +608,7 @@ int RunEndoom() void ST_Endoom() { + TexMan.DeleteAll(); int code = RunEndoom(); throw CExitEvent(code);