gl1: free 16to8 convert table on exit

This commit is contained in:
Denis Pauk 2024-09-10 01:28:43 +03:00
parent e534f9e2b3
commit 1aadd6e404

View file

@ -29,12 +29,12 @@
#define NUM_BEAM_SEGS 6 #define NUM_BEAM_SEGS 6
viddef_t vid; viddef_t vid;
model_t *r_worldmodel; model_t *r_worldmodel = NULL;
float gldepthmin, gldepthmax; float gldepthmin, gldepthmax;
glconfig_t gl_config; glconfig_t gl_config = {0};
glstate_t gl_state; glstate_t gl_state = {0};
image_t *r_notexture; /* use for bad textures */ image_t *r_notexture; /* use for bad textures */
image_t *r_particletexture; /* little dot for particles */ image_t *r_particletexture; /* little dot for particles */
@ -1776,6 +1776,11 @@ RI_Shutdown(void)
QGL_Shutdown(); QGL_Shutdown();
R_FreeTemporaryLMBuffer(); R_FreeTemporaryLMBuffer();
if (gl_state.d_16to8table)
{
free(gl_state.d_16to8table);
}
} }
static void static void