From f9a77a3080598d03c484fa5d04c213b8a06d43d3 Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 24 Aug 2007 11:05:31 -0600 Subject: 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. --- src/mesa/pipe/draw/draw_context.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mesa/pipe/draw/draw_context.h') diff --git a/src/mesa/pipe/draw/draw_context.h b/src/mesa/pipe/draw/draw_context.h index 05a3afd5c6..1bd0e624fe 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? */ /*@}*/ /** -- cgit v1.2.3