Fix overzealous optimization which did interesting things to lightmapping when

not using multitexture.
This commit is contained in:
Ragnvald Maartmann-Moe IV 2004-02-27 21:36:41 +00:00
parent 28fda91e8c
commit 8c6cc34f83

View file

@ -657,8 +657,8 @@ R_CalcAndBlendLightmaps (void)
p = lightmap_polys[i]; p = lightmap_polys[i];
if (!p) if (!p)
continue; continue;
qfglBindTexture (GL_TEXTURE_2D, lightmap_textures + i);
if (lightmap_modified[i]) { if (lightmap_modified[i]) {
qfglBindTexture (GL_TEXTURE_2D, lightmap_textures + i);
GL_UploadLightmap (i); GL_UploadLightmap (i);
lightmap_modified[i] = false; lightmap_modified[i] = false;
} }