From dad38213e796b63c6719589067f6227f92ea8ab8 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 14 Oct 2003 11:33:04 +0000 Subject: Reset ctx->Driver.CurrentSavePrimitive to PRIM_UNKNOWN after compiling a glCallList() command. --- src/mesa/main/dlist.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index bc758fae67d..326e6b397b9 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main/dlist.c @@ -1024,6 +1024,11 @@ void _mesa_save_CallList( GLuint list ) if (n) { n[1].ui = list; } + + /* After this, we don't know what begin/end state we're in: + */ + ctx->Driver.CurrentSavePrimitive = PRIM_UNKNOWN; + if (ctx->ExecuteFlag) { (*ctx->Exec->CallList)( list ); } @@ -1064,6 +1069,11 @@ void _mesa_save_CallLists( GLsizei n, GLenum type, const GLvoid *lists ) n[2].b = typeErrorFlag; } } + + /* After this, we don't know what begin/end state we're in: + */ + ctx->Driver.CurrentSavePrimitive = PRIM_UNKNOWN; + if (ctx->ExecuteFlag) { (*ctx->Exec->CallLists)( n, type, lists ); } -- cgit v1.2.3