Remove fruitless glBindTexture() calls

...when there are no SURF_DRAWTURB surfaces to draw.
This commit is contained in:
Jaime Moreira 2024-06-06 18:23:26 -04:00
parent c4271848df
commit c842ab806f

View file

@ -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);
} }
} }