From: havoc Date: Sat, 27 Feb 2010 21:10:14 +0000 (+0000) Subject: use a larger triangle buffer for r_batchmode 2 X-Git-Tag: xonotic-v0.1.0preview~230^2~440 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a12c43a681e2f505913b315ca8d8311c31cdd1f7;p=xonotic%2Fdarkplaces.git use a larger triangle buffer for r_batchmode 2 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10029 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index c976cda4..1df0dff0 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -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)