summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/dlist.h
diff options
context:
space:
mode:
authorGareth Hughes <gareth@valinux.com>2001-03-24 06:01:27 +0000
committerGareth Hughes <gareth@valinux.com>2001-03-24 06:01:27 +0000
commit425fea1c346438f1c60a768514e74f655f05417a (patch)
treefa432a1124ac1d31184944f90d8de78192244701 /src/mesa/main/dlist.h
parent577f318e0edd159d701a1f36893bbdee3c9e8c41 (diff)
downloadexternal_mesa3d-425fea1c346438f1c60a768514e74f655f05417a.zip
external_mesa3d-425fea1c346438f1c60a768514e74f655f05417a.tar.gz
external_mesa3d-425fea1c346438f1c60a768514e74f655f05417a.tar.bz2
- Minor cleanups of ctx->Driver.Current*Primitive usage.
- Remove unused gl_reduce_prim array.
Diffstat (limited to 'src/mesa/main/dlist.h')
-rw-r--r--src/mesa/main/dlist.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/dlist.h b/src/mesa/main/dlist.h
index 1e769a1..2994cf7 100644
--- a/src/mesa/main/dlist.h
+++ b/src/mesa/main/dlist.h
@@ -1,4 +1,4 @@
-/* $Id: dlist.h,v 1.15 2001/03/24 05:23:46 gareth Exp $ */
+/* $Id: dlist.h,v 1.16 2001/03/24 06:01:27 gareth Exp $ */
/*
* Mesa 3-D graphics library
@@ -34,7 +34,7 @@
#define ASSERT_OUTSIDE_SAVE_BEGIN_END_WITH_RETVAL(ctx, retval) \
do { \
- if (ctx->Driver.CurrentSavePrimitive < GL_POLYGON+1 || \
+ if (ctx->Driver.CurrentSavePrimitive <= GL_POLYGON || \
ctx->Driver.CurrentSavePrimitive == PRIM_INSIDE_UNKNOWN_PRIM) { \
_mesa_compile_error( ctx, GL_INVALID_OPERATION, "begin/end" ); \
return retval; \
@@ -43,7 +43,7 @@ do { \
#define ASSERT_OUTSIDE_SAVE_BEGIN_END(ctx) \
do { \
- if (ctx->Driver.CurrentSavePrimitive < GL_POLYGON+1 || \
+ if (ctx->Driver.CurrentSavePrimitive <= GL_POLYGON || \
ctx->Driver.CurrentSavePrimitive == PRIM_INSIDE_UNKNOWN_PRIM) { \
_mesa_compile_error( ctx, GL_INVALID_OPERATION, "begin/end" ); \
return; \