Skip to content
Snippets Groups Projects

Fix HWR_ClearLightTables being called too late

Merged Lactozilla requested to merge fix-lighttable-out-of-order-free into next
2 files
+ 3
3
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 3
0
@@ -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);
Loading