git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10542
d7cf8633-e32d-0410-b094-
e92efae38249
rsurface.ent_flags = entflags;
rsurface.modelnumvertices = numvertices;
rsurface.modelnumtriangles = numtriangles;
- R_Mesh_ResizeArrays(rsurface.modelnumvertices, rsurface.modelnumtriangles);
+ R_Mesh_ResizeArrays(max(rsurface.modelnumvertices, rsurface.modelnumtriangles));
rsurface.matrix = *matrix;
rsurface.inversematrix = *inversematrix;
rsurface.matrixscale = Matrix4x4_ScaleFromMatrix(&rsurface.matrix);