]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
added gl_vbo 2 mode to test performance of vertex buffers without element buffers
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 13 Dec 2007 20:02:24 +0000 (20:02 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 13 Dec 2007 20:02:24 +0000 (20:02 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7795 d7cf8633-e32d-0410-b094-e92efae38249

gl_backend.c

index 7daeff35e9586ac7b3a78735ed514eac55bb8b8a..09d479da20c33527bde8e12a39224ba6369d0299 100644 (file)
@@ -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++;