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
1 changed files with 1 additions and 2 deletions

View File

@ -903,12 +903,11 @@ R_DrawTextureChains(entity_t *currententity)
continue;
}
R_Bind(image->texnum); // no danger of resetting in R_RenderBrushPoly
for (s = image->texturechain; s; s = s->texturechain)
{
if (s->flags & SURF_DRAWTURB)
{
R_Bind(image->texnum);
R_RenderBrushPoly(currententity, s);
}
}