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-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=58e0683b70d9bc05503ecb9dd6d993f2d4817543;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 --- 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: