]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
use a larger triangle buffer for r_batchmode 2
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 27 Feb 2010 21:10:14 +0000 (21:10 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 27 Feb 2010 21:10:14 +0000 (21:10 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10029 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index c976cda49ba6009e40d6b3cad647631144c2e4ed..1df0dff054b0eca2dc7e419dde6068d987333b67 100644 (file)
@@ -10171,7 +10171,7 @@ void RSurf_DrawBatch_Simple(int texturenumsurfaces, const msurface_t **texturesu
                R_Mesh_Draw(surface->num_firstvertex, surface->num_vertices, surface->num_firsttriangle, surface->num_triangles, rsurface.modelelement3i, rsurface.modelelement3s, rsurface.modelelement3i_bufferobject, rsurface.modelelement3s_bufferobject);
        else if (r_batchmode.integer == 2)
        {
-               #define MAXBATCHTRIANGLES 4096
+               #define MAXBATCHTRIANGLES 65536
                int batchtriangles = 0;
                static int batchelements[MAXBATCHTRIANGLES*3];
                for (i = 0;i < texturenumsurfaces;i = j)
@@ -10321,7 +10321,6 @@ static void RSurf_DrawBatch_WithLightmapSwitching(int texturenumsurfaces, const
        }
        else if (r_batchmode.integer == 2)
        {
-#define MAXBATCHTRIANGLES 4096
                int batchtriangles = 0;
                static int batchelements[MAXBATCHTRIANGLES*3];
                for (i = 0;i < texturenumsurfaces;i = j)