]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
clarify the code when gl_mesh_prefer_short_elements is off
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 22 May 2013 06:45:43 +0000 (06:45 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 22 May 2013 06:45:43 +0000 (06:45 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11950 d7cf8633-e32d-0410-b094-e92efae38249

gl_backend.c

index e435aef0ca00a18f89110e63e7ecb2ac8dfa0539..bd36d932ba388b21e1f9ab831981086bda8bc1c9 100644 (file)
@@ -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)