summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_imm_dlist.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2000-12-27 21:49:40 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2000-12-27 21:49:40 +0000
commit93259cdfa10cfd484323b88cf00c9e8422c06bc5 (patch)
treefd9df057ff91d03d8936dbfb8e35307b4a686d1b /src/mesa/tnl/t_imm_dlist.c
parent719344b23ed7b1947af1db9281389f3fc74c3fc5 (diff)
fix sproingies bug
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 9acd6ea1d7..a11217e437 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) { */