summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_trispan.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/swrast/s_trispan.h')
-rw-r--r--src/mesa/swrast/s_trispan.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_trispan.h b/src/mesa/swrast/s_trispan.h
index cd577f51ca..2ac3c4d17a 100644
--- a/src/mesa/swrast/s_trispan.h
+++ b/src/mesa/swrast/s_trispan.h
@@ -1,4 +1,4 @@
-/* $Id: s_trispan.h,v 1.1 2001/05/14 16:23:04 brianp Exp $ */
+/* $Id: s_trispan.h,v 1.2 2001/07/14 17:53:04 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -58,6 +58,15 @@ struct triangle_span {
GLint x, y;
GLuint count;
GLuint activeMask; /* OR of the SPAN_* flags */
+#if CHAN_TYPE == GL_FLOAT
+ GLfloat red, redStep;
+ GLfloat green, greenStep;
+ GLfloat blue, blueStep;
+ GLfloat alpha, alphaStep;
+ GLfloat specRed, specRedStep;
+ GLfloat specGreen, specGreenStep;
+ GLfloat specBlue, specBlueStep;
+#else
GLfixed red, redStep;
GLfixed green, greenStep;
GLfixed blue, blueStep;
@@ -65,6 +74,7 @@ struct triangle_span {
GLfixed specRed, specRedStep;
GLfixed specGreen, specGreenStep;
GLfixed specBlue, specBlueStep;
+#endif
GLfixed index, indexStep;
GLfixed z, zStep;
GLfloat fog, fogStep;