mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-25 05:51:01 +00:00
Remove fruitless glBindTexture() calls
...when there are no SURF_DRAWTURB surfaces to draw.
This commit is contained in:
parent
c4271848df
commit
c842ab806f
1 changed files with 1 additions and 2 deletions
|
@ -903,12 +903,11 @@ R_DrawTextureChains(entity_t *currententity)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
R_Bind(image->texnum); // no danger of resetting in R_RenderBrushPoly
|
|
||||||
|
|
||||||
for (s = image->texturechain; s; s = s->texturechain)
|
for (s = image->texturechain; s; s = s->texturechain)
|
||||||
{
|
{
|
||||||
if (s->flags & SURF_DRAWTURB)
|
if (s->flags & SURF_DRAWTURB)
|
||||||
{
|
{
|
||||||
|
R_Bind(image->texnum);
|
||||||
R_RenderBrushPoly(currententity, s);
|
R_RenderBrushPoly(currententity, s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue