Merge remote-tracking branch 'origin/newpalshader' into lugstuff

This commit is contained in:
Alug committed 2024-01-11 01:10:04 +01:00
commit 3de0c4f5d8
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -1099,6 +1099,7 @@ UINT32 HWR_GetLightTableID(extracolormap_t *colormap)
void HWR_ClearLightTables(void)
{
//if (vid.glstate == VID_GL_LIBRARY_LOADED)
if (rendermode == render_opengl)
HWD.pfnClearLightTables();
}
+2 -2
View File
@@ -28,7 +28,6 @@
#ifdef HWRENDER
#include "hardware/hw_main.h"
#include "hardware/hw_glob.h" // HWR_ClearLightTables
#endif
@@ -1141,7 +1140,8 @@ void R_ClearColormaps(void)
memset(extra_colormaps, 0, sizeof (extra_colormaps));
#ifdef HWRENDER
HWR_ClearLightTables();
if (rendermode == render_opengl)
HWR_ClearLightTables();
#endif
}