From 25574133545ae445b8887d355ccaa809c02d7c30 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 22 May 2013 06:45:43 +0000 Subject: [PATCH] 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 --- gl_backend.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.39.2