]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
reduce TRIANGLEEDGEHASH from 16384 bins to 8192 to avoid a stack overflow on MSVC x64
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 8 Jul 2005 08:42:52 +0000 (08:42 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 8 Jul 2005 08:42:52 +0000 (08:42 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5513 d7cf8633-e32d-0410-b094-e92efae38249

model_shared.c

index 81fd300c1868d0b5d2b22d7e7ab2c60a0e94e303..a85f6196a16848fa5476c87f0b85d121f944f1b0 100644 (file)
@@ -386,7 +386,7 @@ int Mod_BuildVertexRemapTableFromElements(int numelements, const int *elements,
 
 #if 1
 // fast way, using an edge hash
-#define TRIANGLEEDGEHASH 16384
+#define TRIANGLEEDGEHASH 8192
 void Mod_BuildTriangleNeighbors(int *neighbors, const int *elements, int numtriangles)
 {
        int i, j, p, e1, e2, *n, hashindex, count, match;