don't bother binding unmodified lightmaps

This commit is contained in:
Bill Currie 2004-02-26 00:33:24 +00:00
parent 4afe0c1588
commit 228c5a0ecf

View file

@ -543,8 +543,8 @@ R_CalcLightmaps (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;
}
@ -652,8 +652,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;
}