dont clear all our textures if we dont intend to reload em
the multipart addfile stuff is awkward asf
This commit is contained in:
1 parent
46e10f67b2
commit
2c8d5f2625
1 file changed
+5
-6
+5
-6
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user