mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
don't bother binding unmodified lightmaps
This commit is contained in:
parent
4afe0c1588
commit
228c5a0ecf
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue