summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_prim_cull.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-06-22 12:47:04 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-06-22 12:47:04 -0600
commitf79c225d9e5adee6287a9bba35f014c3fe00d3f9 (patch)
tree7f8641c4118a87aabeb76f75db5d45a53e522f2d /src/mesa/pipe/softpipe/sp_prim_cull.c
parent493ed9fc11a2bf272a2c1e9e5a072e4f02b46554 (diff)
Assorted token renaming/removal, minor state changes, etc.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_prim_cull.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_prim_cull.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/pipe/softpipe/sp_prim_cull.c b/src/mesa/pipe/softpipe/sp_prim_cull.c
index 16920d478a..63099fbee0 100644
--- a/src/mesa/pipe/softpipe/sp_prim_cull.c
+++ b/src/mesa/pipe/softpipe/sp_prim_cull.c
@@ -29,6 +29,7 @@
*/
#include "imports.h"
+#include "pipe/p_defines.h"
#include "sp_context.h"
#include "sp_prim.h"
@@ -75,8 +76,8 @@ static void cull_tri( struct prim_stage *stage,
_mesa_printf("%s %f\n", __FUNCTION__, header->det );
if (header->det != 0) {
- GLuint mode = (header->det < 0) ? WINDING_CW : WINDING_CCW;
-
+ GLuint mode = (header->det < 0) ? PIPE_WINDING_CW : PIPE_WINDING_CCW;
+
if ((mode & cull_stage(stage)->mode) == 0)
stage->next->tri( stage->next, header );
}