git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8672
d7cf8633-e32d-0410-b094-
e92efae38249
{
// calculate first edge
VectorSubtract(vertex3f + inelement3i[1] * 3, vertex3f + inelement3i[0] * 3, edgedir1);
- VectorSubtract(vertex3f + inelement3i[1] * 3, vertex3f + inelement3i[0] * 3, edgedir2);
+ VectorSubtract(vertex3f + inelement3i[2] * 3, vertex3f + inelement3i[0] * 3, edgedir2);
CrossProduct(edgedir1, edgedir2, temp);
if (VectorLength2(temp) < 0.001f)
continue; // degenerate triangle (no area)