From: havoc Date: Sat, 7 Apr 2018 19:27:07 +0000 (+0000) Subject: Uncomment the texture binding check in R_Mesh_TexBind so that the engine makes less... X-Git-Tag: xonotic-v0.8.5~40 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=a7dec84b2f42d22b1261bf88ac9244ac5cc9d4c4;p=xonotic%2Fdarkplaces.git Uncomment the texture binding check in R_Mesh_TexBind so that the engine makes less calls. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12371 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=58e0683b70d9bc05503ecb9dd6d993f2d4817543 --- diff --git a/gl_backend.c b/gl_backend.c index 61e5291e..fa8fc68a 100644 --- a/gl_backend.c +++ b/gl_backend.c @@ -3873,8 +3873,8 @@ void R_Mesh_TexBind(unsigned int unitnum, rtexture_t *tex) int tex2d, tex3d, texcubemap, texnum; if (unitnum >= vid.teximageunits) return; -// if (unit->texture == tex) -// return; + if (unit->texture == tex) + return; switch(vid.renderpath) { case RENDERPATH_GL20: