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
1 changed files with 8 additions and 3 deletions

View File

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