From dec20ee2c7e9e22322d715391bef1fbbbf0884f6 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 28 Nov 2007 10:57:12 +0000 Subject: [PATCH] small optimization to use of texture_t->currenttexmatrix (no longer setting it to identitymatrix when there are no tcmods, because uninitialized matrices are optimized more in the backend than identity) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7731 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_rmain.c b/gl_rmain.c index 2755fd51..852ce37a 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -4065,7 +4065,7 @@ void R_UpdateTextureInfo(const entity_render_t *ent, texture_t *t) if (t->backgroundnumskinframes && !(t->currentmaterialflags & MATERIALFLAGMASK_DEPTHSORTED)) t->currentmaterialflags |= MATERIALFLAG_VERTEXTEXTUREBLEND; - for (i = 0, tcmod = t->tcmods;i < Q3MAXTCMODS && (tcmod->tcmod || i < 1);i++, tcmod++) + for (i = 0, tcmod = t->tcmods;i < Q3MAXTCMODS && tcmod->tcmod;i++, tcmod++) { matrix4x4_t matrix; switch(tcmod->tcmod) -- 2.39.2