diff options
author | Keith Whitwell <[email protected]> | 2003-10-14 11:33:04 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2003-10-14 11:33:04 +0000 |
commit | dad38213e796b63c6719589067f6227f92ea8ab8 (patch) | |
tree | b4c795d90dc6db38f352d74f3822860c580de388 /src | |
parent | 9cbad64314fffe7488ac149379b02b86b36bd78b (diff) |
Reset ctx->Driver.CurrentSavePrimitive to PRIM_UNKNOWN after compiling a
glCallList() command.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/dlist.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 ); } |