diff options
author | Gareth Hughes <gareth@valinux.com> | 2001-03-24 06:01:27 +0000 |
---|---|---|
committer | Gareth Hughes <gareth@valinux.com> | 2001-03-24 06:01:27 +0000 |
commit | 425fea1c346438f1c60a768514e74f655f05417a (patch) | |
tree | fa432a1124ac1d31184944f90d8de78192244701 /src/mesa/main/mtypes.h | |
parent | 577f318e0edd159d701a1f36893bbdee3c9e8c41 (diff) |
- Minor cleanups of ctx->Driver.Current*Primitive usage.
- Remove unused gl_reduce_prim array.
Diffstat (limited to 'src/mesa/main/mtypes.h')
-rw-r--r-- | src/mesa/main/mtypes.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 587d884b76..2c7f2e1da8 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1,4 +1,4 @@ -/* $Id: mtypes.h,v 1.30 2001/03/23 06:07:31 gareth Exp $ */ +/* $Id: mtypes.h,v 1.31 2001/03/24 06:01:27 gareth Exp $ */ /* * Mesa 3-D graphics library @@ -1624,7 +1624,6 @@ struct __GLcontextRec { /* The string names for GL_POINT, GL_LINE_LOOP, etc */ extern const char *_mesa_prim_name[GL_POLYGON+4]; -extern GLenum gl_reduce_prim[]; #ifdef MESA_DEBUG @@ -1680,7 +1679,7 @@ do { \ #define ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, retval) \ do { \ - if (ctx->Driver.CurrentExecPrimitive != GL_POLYGON+1) { \ + if (ctx->Driver.CurrentExecPrimitive != PRIM_OUTSIDE_BEGIN_END) { \ _mesa_error( ctx, GL_INVALID_OPERATION, "begin/end" ); \ return retval; \ } \ @@ -1688,7 +1687,7 @@ do { \ #define ASSERT_OUTSIDE_BEGIN_END(ctx) \ do { \ - if (ctx->Driver.CurrentExecPrimitive != GL_POLYGON+1) { \ + if (ctx->Driver.CurrentExecPrimitive != PRIM_OUTSIDE_BEGIN_END) { \ _mesa_error( ctx, GL_INVALID_OPERATION, "begin/end" ); \ return; \ } \ |