Merge branch 'fix-lighttable-out-of-order-free' into 'next'

Fix HWR_ClearLightTables being called too late

See merge request STJr/SRB2!2557
This commit is contained in:
Lactozilla 2024-12-07 22:42:23 +00:00
commit 08755e6260
2 changed files with 3 additions and 3 deletions

View file

@ -8002,6 +8002,9 @@ boolean P_LoadLevel(boolean fromnetsave, boolean reloadinggamestate)
// Free GPU textures before freeing patches.
if (rendermode == render_opengl && (vid.glstate == VID_GL_LIBRARY_LOADED))
HWR_ClearAllTextures();
// Delete light table textures
HWR_ClearLightTables();
#endif
Patch_FreeTag(PU_PATCH_LOWPRIORITY);

View file

@ -426,9 +426,6 @@ void R_ClearColormaps(void)
{
// Purged by PU_LEVEL, just overwrite the pointer
extra_colormaps = R_CreateDefaultColormap(true);
#ifdef HWRENDER
HWR_ClearLightTables();
#endif
}
//