Skip to content

Commit

Permalink
gl1: free 16to8 convert table on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
0lvin committed Sep 10, 2024
1 parent e534f9e commit 1aadd6e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/client/refresh/gl1/gl1_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -1776,6 +1776,11 @@ RI_Shutdown(void)
QGL_Shutdown();

R_FreeTemporaryLMBuffer();

if (gl_state.d_16to8table)
{
free(gl_state.d_16to8table);
}
}

static void
Expand Down

0 comments on commit 1aadd6e

Please sign in to comment.