From: havoc Date: Wed, 22 May 2013 06:45:43 +0000 (+0000) Subject: clarify the code when gl_mesh_prefer_short_elements is off X-Git-Tag: xonotic-v0.7.0~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8e88c1c1cb7e199d429becf70d2d9d6834b341de;p=xonotic%2Fdarkplaces.git clarify the code when gl_mesh_prefer_short_elements is off git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11950 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=25574133545ae445b8887d355ccaa809c02d7c30 --- diff --git a/gl_backend.c b/gl_backend.c index e435aef0..bd36d932 100644 --- a/gl_backend.c +++ b/gl_backend.c @@ -2753,9 +2753,10 @@ void R_Mesh_Draw(int firstvertex, int numvertices, int firsttriangle, int numtri if (!gl_mesh_prefer_short_elements.integer) { if (element3i) + { element3s = NULL; - if (element3i_indexbuffer) - element3i_indexbuffer = NULL; + element3s_indexbuffer = NULL; + } } // adjust the pointers for firsttriangle if (element3i)