summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2003-10-14 11:33:04 +0000
committerKeith Whitwell <[email protected]>2003-10-14 11:33:04 +0000
commitdad38213e796b63c6719589067f6227f92ea8ab8 (patch)
treeb4c795d90dc6db38f352d74f3822860c580de388 /src/mesa
parent9cbad64314fffe7488ac149379b02b86b36bd78b (diff)
Reset ctx->Driver.CurrentSavePrimitive to PRIM_UNKNOWN after compiling a
glCallList() command.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/dlist.c10
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 );
}