diff --git a/libs/video/renderer/gl/gl_lightmap.c b/libs/video/renderer/gl/gl_lightmap.c index 99f81180f..0dd9a2581 100644 --- a/libs/video/renderer/gl/gl_lightmap.c +++ b/libs/video/renderer/gl/gl_lightmap.c @@ -657,8 +657,8 @@ R_CalcAndBlendLightmaps (void) p = lightmap_polys[i]; if (!p) continue; + qfglBindTexture (GL_TEXTURE_2D, lightmap_textures + i); if (lightmap_modified[i]) { - qfglBindTexture (GL_TEXTURE_2D, lightmap_textures + i); GL_UploadLightmap (i); lightmap_modified[i] = false; }