Skip to content

Commit

Permalink
Remove freeing of previous alphaskytexture
Browse files Browse the repository at this point in the history
level unload will clean it up and this can call GL_WaitForDeviceIdle from a task which isn't safe
  • Loading branch information
Novum committed Jul 8, 2022
1 parent 082e7c0 commit d87eadf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Quake/gl_sky.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ void Sky_LoadTexture (qmodel_t *mod, texture_t *mt, int tex_index)
if (tex_index > max_skytexture_index)
{
max_skytexture_index = tex_index;
if (alphaskytexture)
TexMgr_FreeTexture (alphaskytexture);
alphaskytexture = TexMgr_LoadImage (mod, texturename, halfwidth, mt->height, SRC_INDEXED, front_data, "", (src_offset_t)front_data, TEXPREF_ALPHA);

// calculate r_fastsky color based on average of all opaque foreground colors
Expand Down

0 comments on commit d87eadf

Please sign in to comment.