From a7dec84b2f42d22b1261bf88ac9244ac5cc9d4c4 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 7 Apr 2018 19:27:07 +0000 Subject: [PATCH] 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 --- gl_backend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.39.2