]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_backend.c
Added R_SkinFrame_PurgeSkinFrame to de-duplicate some repeated code.
[xonotic/darkplaces.git] / gl_backend.c
index 61e5291e748b104f4aac39ee45ad47316062f8fd..fa8fc68a6a451787a93b6dad05bd5306960cc223 100644 (file)
@@ -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: