mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 09:11:48 +00:00
Free GPU textures when adding a file
This commit is contained in:
parent
0645c642d2
commit
2e21168395
1 changed files with 5 additions and 0 deletions
|
@ -4498,6 +4498,11 @@ boolean P_AddWadFile(const char *wadfilename)
|
|||
if (!devparm && digmreplaces)
|
||||
CONS_Printf(M_GetText("%s digital musics replaced\n"), sizeu1(digmreplaces));
|
||||
|
||||
#ifdef HWRENDER
|
||||
// Free GPU textures before freeing patches.
|
||||
if (vid.glstate == VID_GL_LIBRARY_LOADED)
|
||||
HWR_ClearAllTextures();
|
||||
#endif
|
||||
|
||||
//
|
||||
// search for sprite replacements
|
||||
|
|
Loading…
Reference in a new issue