]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_backend.c
disabled memory clumping, which surprisingly improves memory use, rather than hinders...
[xonotic/darkplaces.git] / gl_backend.c
index 7b272fd1f5d11150915fb6dba5d906fd50b3d9ad..dad2ad1f2921b1a73922f5dd66a40ce1e43f3da8 100644 (file)
@@ -784,6 +784,14 @@ void R_Mesh_Render(void)
        if (!currentmesh)
                return;
 
+       if (!r_render.integer)
+       {
+               currentmesh = 0;
+               currenttriangle = 0;
+               currentvertex = 0;
+               return;
+       }
+
        CHECKGLERROR
 
        GL_UpdateFarclip();