summaryrefslogtreecommitdiff
path: root/src/mesa/main
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-09-15 13:47:25 +0100
committerBrian Paul <brian.paul@tungstengraphics.com>2008-09-15 09:18:45 -0600
commitcd23c5c5998f3c48153a22bed53986b4293f797a (patch)
tree113e8d7a5aad0a3012996173635b803bb7d138f2 /src/mesa/main
parent75c19eb5a1caf0c36e04270174579d0d7fec9ccb (diff)
mesa: get another class of degenerate dlists working
Primitive begin in one dlist, end in another.
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/dlist.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c
index b4ed300b2e..ffe6dbfe08 100644
--- a/src/mesa/main/dlist.c
+++ b/src/mesa/main/dlist.c
@@ -6737,6 +6737,11 @@ _mesa_EndList(void)
_mesa_error(ctx, GL_INVALID_OPERATION, "glEndList");
return;
}
+
+ /* Call before emitting END_OF_LIST, in case the driver wants to
+ * emit opcodes itself.
+ */
+ ctx->Driver.EndList(ctx);
(void) ALLOC_INSTRUCTION(ctx, OPCODE_END_OF_LIST, 0);
@@ -6750,8 +6755,6 @@ _mesa_EndList(void)
if (MESA_VERBOSE & VERBOSE_DISPLAY_LIST)
mesa_print_display_list(ctx->ListState.CurrentListNum);
- ctx->Driver.EndList(ctx);
-
ctx->ListState.CurrentList = NULL;
ctx->ListState.CurrentListNum = 0;
ctx->ListState.CurrentListPtr = NULL;