aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_imm_dlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/tnl/t_imm_dlist.c')
-rw-r--r--src/mesa/tnl/t_imm_dlist.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mesa/tnl/t_imm_dlist.c b/src/mesa/tnl/t_imm_dlist.c
index 9acd6ea1d79..a11217e4374 100644
--- a/src/mesa/tnl/t_imm_dlist.c
+++ b/src/mesa/tnl/t_imm_dlist.c
@@ -1,4 +1,4 @@
-/* $Id: t_imm_dlist.c,v 1.2 2000/12/26 07:41:32 keithw Exp $ */
+/* $Id: t_imm_dlist.c,v 1.3 2000/12/27 21:49:40 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -187,8 +187,6 @@ execute_compiled_cassette( GLcontext *ctx, void *data )
TNLvertexcassette *node = (TNLvertexcassette *)data;
struct immediate *IM = node->IM;
-/* FLUSH_VERTICES( ctx, 0 ); */
-
if (ctx->NewState)
gl_update_state(ctx);
@@ -214,7 +212,12 @@ execute_compiled_cassette( GLcontext *ctx, void *data )
fprintf(stderr, "Run cassette %d, rows %d..%d, beginstate %x ",
IM->id,
IM->Start, IM->Count, IM->BeginState);
-/* _tnl_print_vert_flags("orflag", IM->OrFlag); */
+ _tnl_print_vert_flags("orflag", IM->OrFlag);
+ }
+
+ if (IM->Count == IM->Start) {
+ _tnl_run_empty_cassette( ctx, IM );
+ return;
}
if (IM->SavedBeginState) {
@@ -227,7 +230,6 @@ execute_compiled_cassette( GLcontext *ctx, void *data )
}
-
/* Lazy optimization of the cassette.
*/
/* if (ctx->Transform.Normalize && !node->have_normal_lengths) { */