summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_vb_render.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-04-06 22:11:57 +0000
committerBrian Paul <[email protected]>2006-04-06 22:11:57 +0000
commit51faca127005c41277df76bc8eafc8fd64ca0673 (patch)
tree3ef6f2ae8f1616746e8d7316b0ca8d23267081e0 /src/mesa/tnl/t_vb_render.c
parentf51a32e82a907363a77d91b855e519f43191cad8 (diff)
Rename CLIP_ALL_BITS to CLIP_FRUSTUM_BITS to reflect the fact that the value
only includes the 6 frustum bits, not the user-clip plane bit, nor the vertex cull bit.
Diffstat (limited to 'src/mesa/tnl/t_vb_render.c')
-rw-r--r--src/mesa/tnl/t_vb_render.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vb_render.c b/src/mesa/tnl/t_vb_render.c
index f6e16a9f2b5..abc5429919e 100644
--- a/src/mesa/tnl/t_vb_render.c
+++ b/src/mesa/tnl/t_vb_render.c
@@ -73,7 +73,8 @@
#define EDGEFLAG_SET(idx, val) VB->EdgeFlag[idx] = val
-#define CLIPMASK (CLIP_ALL_BITS|CLIP_CULL_BIT)
+/* This does NOT include the CLIP_USER_BIT! */
+#define CLIPMASK (CLIP_FRUSTUM_BITS | CLIP_CULL_BIT)
/* Vertices, with the possibility of clipping.
@@ -85,6 +86,7 @@
do { \
GLubyte c1 = mask[v1], c2 = mask[v2]; \
GLubyte ormask = c1|c2; \
+ printf("0x%x 0x%x 0x%x\n", c1, c2, CLIPMASK);\
if (!ormask) \
LineFunc( ctx, v1, v2 ); \
else if (!(c1 & c2 & CLIPMASK)) \