-/* $Id: s_triangle.c,v 1.11 2001/02/06 21:42:49 brianp Exp $ */
+/* $Id: s_triangle.c,v 1.12 2001/02/07 18:44:55 brianp Exp $ */
/*
* Mesa 3-D graphics library
if (n>0) { \
if (flat_shade) { \
for (i=0;i<n;i++) { \
- GLdouble invQ = 1.0 / vv; \
+ GLdouble invQ = vv ? (1.0 / vv) : 1.0; \
zspan[i] = FixedToDepth(ffz); \
fogspan[i] = fffog / 256; \
rgba[i][RCOMP] = r; \
} \
else { \
for (i=0;i<n;i++) { \
- GLdouble invQ = 1.0 / vv; \
+ GLdouble invQ = vv ? (1.0 / vv) : 1.0; \
zspan[i] = FixedToDepth(ffz); \
rgba[i][RCOMP] = FixedToInt(ffr); \
rgba[i][GCOMP] = FixedToInt(ffg); \
if (n>0) { \
if (flat_shade) { \
for (i=0;i<n;i++) { \
- GLdouble invQ = 1.0 / vv; \
+ GLdouble invQ = vv ? (1.0 / vv) : 1.0; \
zspan[i] = FixedToDepth(ffz); \
fogspan[i] = fffog / 256; \
rgba[i][RCOMP] = r; \
} \
else { \
for (i=0;i<n;i++) { \
- GLdouble invQ = 1.0 / vv; \
+ GLdouble invQ = vv ? (1.0 / vv) : 1.0; \
zspan[i] = FixedToDepth(ffz); \
fogspan[i] = fffog / 256; \
rgba[i][RCOMP] = FixedToInt(ffr); \
if (n>0) { \
if (flat_shade) { \
for (i=0;i<n;i++) { \
- GLdouble invQ = 1.0 / vv; \
+ GLdouble invQ = vv ? (1.0 / vv) : 1.0; \
zspan[i] = FixedToDepth(ffz); \
fogspan[i] = fffog / 256; \
rgba[i][RCOMP] = r; \
} \
else { \
for (i=0;i<n;i++) { \
- GLdouble invQ = 1.0 / vv; \
+ GLdouble invQ = vv ? (1.0 / vv) : 1.0; \
zspan[i] = FixedToDepth(ffz); \
fogspan[i] = fffog / 256; \
rgba[i][RCOMP] = FixedToInt(ffr); \
if (n>0) { \
if (flat_shade) { \
for (i=0;i<n;i++) { \
- GLdouble invQ = 1.0 / vv; \
+ GLdouble invQ = vv ? (1.0 / vv) : 1.0; \
zspan[i] = FixedToDepth(ffz); \
fogspan[i] = fffog / 256; \
rgba[i][RCOMP] = r; \
} \
else { \
for (i=0;i<n;i++) { \
- GLdouble invQ = 1.0 / vv; \
+ GLdouble invQ = vv ? (1.0 / vv) : 1.0; \
zspan[i] = FixedToDepth(ffz); \
fogspan[i] = fffog / 256; \
rgba[i][RCOMP] = FixedToInt(ffr); \