From 2c8d5f2625970a6569285a33c6fdcc485002335f Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 16 Apr 2025 16:25:58 +0200 Subject: [PATCH] dont clear all our textures if we dont intend to reload em the multipart addfile stuff is awkward asf --- src/p_setup.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/p_setup.c b/src/p_setup.c index d1657a153..6e8ea237c 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -3340,12 +3340,6 @@ UINT16 P_PartialAddWadFile(const char *wadfilename, boolean local) if (!devparm && digmreplaces) CONS_Printf(M_GetText("%s digital musics replaced\n"), sizeu1(digmreplaces)); -#ifdef HWRENDER - // Free GPU textures before freeing patches. - if (rendermode == render_opengl && (vid.glstate == VID_GL_LIBRARY_LOADED)) - HWR_ClearAllTextures(); -#endif - // // search for sprite replacements // @@ -3482,6 +3476,11 @@ boolean P_MultiSetupWadFiles(boolean fullsetup) if (partadd_stage == 1) { +#ifdef HWRENDER + // Free GPU textures before freeing patches. + if (rendermode == render_opengl && (vid.glstate == VID_GL_LIBRARY_LOADED)) + HWR_ClearAllTextures(); +#endif // Reload all textures, unconditionally for better or worse. R_LoadTextures();