mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Free GPU textures when adding a file
This commit is contained in:
parent
82b11c224a
commit
0a4a988a33
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…
Add table
Reference in a new issue