-/* $Id: dlist.h,v 1.10 2000/12/26 05:09:28 keithw Exp $ */
+/* $Id: dlist.h,v 1.11 2000/12/26 07:41:32 keithw Exp $ */
/*
* Mesa 3-D graphics library
#define ASSERT_OUTSIDE_SAVE_BEGIN_END_WITH_RETVAL(ctx, retval) \
do { \
- if (ctx->Driver.CurrentExecPrimitive != GL_POLYGON+1) { \
- gl_error( ctx, GL_INVALID_OPERATION, "begin/end" ); \
+ if (ctx->Driver.CurrentSavePrimitive < GL_POLYGON+1 || \
+ ctx->Driver.CurrentSavePrimitive == PRIM_INSIDE_UNKNOWN_PRIM) { \
+ _mesa_compile_error( ctx, GL_INVALID_OPERATION, "begin/end" ); \
return retval; \
} \
} while (0)
-/* $Id: t_imm_dlist.c,v 1.1 2000/12/26 05:09:32 keithw Exp $ */
+/* $Id: t_imm_dlist.c,v 1.2 2000/12/26 07:41:32 keithw Exp $ */
/*
* Mesa 3-D graphics library
TNLvertexcassette *node = (TNLvertexcassette *)data;
struct immediate *IM = node->IM;
- FLUSH_VERTICES( ctx, 0 );
+/* FLUSH_VERTICES( ctx, 0 ); */
if (ctx->NewState)
gl_update_state(ctx);
/* Set current Begin/End state to unknown:
*/
IM->BeginState = VERT_BEGIN_0;
+ ctx->Driver.CurrentSavePrimitive = PRIM_UNKNOWN;
}