From: havoc Date: Thu, 13 Dec 2007 20:02:24 +0000 (+0000) Subject: added gl_vbo 2 mode to test performance of vertex buffers without element buffers X-Git-Tag: xonotic-v0.1.0preview~2695 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a9bd3a331d4e4871a5d7d730aef4933bf0bc22fb;p=xonotic%2Fdarkplaces.git added gl_vbo 2 mode to test performance of vertex buffers without element buffers git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7795 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_backend.c b/gl_backend.c index 7daeff35..09d479da 100644 --- a/gl_backend.c +++ b/gl_backend.c @@ -1021,7 +1021,7 @@ void R_Mesh_Draw(int firstvertex, int numvertices, int numtriangles, const int * Con_Printf("R_Mesh_Draw(%d, %d, %d, %8p, %i, %p);\n", firstvertex, numvertices, numtriangles, elements, bufferobject, (void *)bufferoffset); return; } - if (!gl_vbo.integer) + if (gl_vbo.integer != 1) bufferobject = 0; CHECKGLERROR r_refdef.stats.meshes++;