summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/draw/draw_context.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-24 11:05:31 -0600
committerBrian <[email protected]>2007-08-24 11:06:13 -0600
commitf9a77a3080598d03c484fa5d04c213b8a06d43d3 (patch)
treedd20a620dd775bc4b8c10eebadf9869f78665ee9 /src/mesa/pipe/draw/draw_context.h
parent6a13caec093dc86fbce80c9f78426d39e9b4276b (diff)
Fix user-defined clip planes. They seem to work properly now.
The bits for the N user-defined planes are now set in the vertex_header->clipmask. See some detailed comments about this in the clip_line() function. CLIP_USER_BIT no longer exists.
Diffstat (limited to 'src/mesa/pipe/draw/draw_context.h')
-rw-r--r--src/mesa/pipe/draw/draw_context.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/pipe/draw/draw_context.h b/src/mesa/pipe/draw/draw_context.h
index 05a3afd5c64..1bd0e624fe1 100644
--- a/src/mesa/pipe/draw/draw_context.h
+++ b/src/mesa/pipe/draw/draw_context.h
@@ -56,8 +56,7 @@ struct draw_stage;
#define CLIP_BOTTOM_BIT 0x08
#define CLIP_NEAR_BIT 0x10
#define CLIP_FAR_BIT 0x20
-#define CLIP_USER_BIT 0x40
-#define CLIP_CULL_BIT 0x80
+#define CLIP_CULL_BIT (1 << (6 + PIPE_MAX_CLIP_PLANES)) /*unused? */
/*@}*/
/**