ref: b6f3eeab8fd341aa9ead5625fbd6e0f2e53110b9
parent: 16a31b4484b6536f5b235cf797773b1efd22305f
author: MHS <gek@katherine>
date: Wed Mar 17 10:51:03 EDT 2021
Automatic commit.
--- a/src/ztriangle.h
+++ b/src/ztriangle.h
@@ -78,9 +78,12 @@
fdy2 = p2->y - p0->y;
GLfloat fz = fdx1 * fdy2 - fdx2 * fdy1;//fz first usage
+ /*
if (fz == 0)
return;
fz = 1.0 / fz; //value of fz is used (VALUE_FZ_USED)
+ */
+ if(fz != 0.0) fz = 1.0/fz;
//for these (VALUE_FZ_USED)
fdx1 *= fz;
fdy1 *= fz;