if(bspDrawVerts == 0)
{
- numBSPDrawVertsBuffer = MAX_MAP_DRAW_VERTS / 37;
+ numBSPDrawVertsBuffer = 1024;
bspDrawVerts = safe_malloc_info(sizeof(bspDrawVert_t) * numBSPDrawVertsBuffer, "IncDrawVerts");
numBSPDrawVertsBuffer *= 3; // multiply by 1.5
numBSPDrawVertsBuffer /= 2;
- if(numBSPDrawVertsBuffer > MAX_MAP_DRAW_VERTS)
- numBSPDrawVertsBuffer = MAX_MAP_DRAW_VERTS;
-
bspDrawVerts = realloc(bspDrawVerts, sizeof(bspDrawVert_t) * numBSPDrawVertsBuffer);
if(!bspDrawVerts)
#define MAX_MAP_VISIBILITY 0x200000
#define MAX_MAP_DRAW_SURFS 0x20000
-#define MAX_MAP_DRAW_VERTS 0x80000
#define MAX_MAP_DRAW_INDEXES 0x80000
#define MAX_MAP_ADVERTISEMENTS 30
for( i = 0; i < ds->numVerts; i++ )
{
/* allocate a new vert */
- if( numBSPDrawVerts == MAX_MAP_DRAW_VERTS )
- Error( "MAX_MAP_DRAW_VERTS" );
IncDrawVerts();
dv = &bspDrawVerts[ numBSPDrawVerts - 1 ];