summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_imm_exec.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2000-12-27 21:49:40 +0000
committerKeith Whitwell <[email protected]>2000-12-27 21:49:40 +0000
commit93259cdfa10cfd484323b88cf00c9e8422c06bc5 (patch)
treefd9df057ff91d03d8936dbfb8e35307b4a686d1b /src/mesa/tnl/t_imm_exec.c
parent719344b23ed7b1947af1db9281389f3fc74c3fc5 (diff)
fix sproingies bug
Diffstat (limited to 'src/mesa/tnl/t_imm_exec.c')
-rw-r--r--src/mesa/tnl/t_imm_exec.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/tnl/t_imm_exec.c b/src/mesa/tnl/t_imm_exec.c
index 97f23d86e64..80adbb4d312 100644
--- a/src/mesa/tnl/t_imm_exec.c
+++ b/src/mesa/tnl/t_imm_exec.c
@@ -1,4 +1,4 @@
-/* $Id: t_imm_exec.c,v 1.1 2000/12/26 05:09:32 keithw Exp $ */
+/* $Id: t_imm_exec.c,v 1.2 2000/12/27 21:49:40 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -358,14 +358,10 @@ static void exec_elt_cassette( GLcontext *ctx, struct immediate *IM )
/* Called for cassettes where CopyStart == Count -- no need to run the
* pipeline.
*/
-static void exec_empty_cassette( GLcontext *ctx, struct immediate *IM )
+void _tnl_run_empty_cassette( GLcontext *ctx, struct immediate *IM )
{
GLuint start = IM->CopyStart;
- if (IM->OrFlag & VERT_ELT)
- _tnl_translate_array_elts( ctx, IM, start, start );
-
- _tnl_fixup_input( ctx, IM ); /* shouldn't be needed? (demos/fire) */
copy_to_current( ctx, IM, IM->OrFlag );
if (IM->OrFlag & VERT_MATERIAL)
@@ -428,7 +424,11 @@ void _tnl_execute_cassette( GLcontext *ctx, struct immediate *IM )
_tnl_get_exec_copy_verts( ctx, IM );
if (IM->CopyStart == IM->Count) {
- exec_empty_cassette( ctx, IM );
+ if (IM->OrFlag & VERT_ELT)
+ _tnl_translate_array_elts( ctx, IM, IM->CopyStart, IM->CopyStart );
+
+ _tnl_fixup_input( ctx, IM ); /* shouldn't be needed? (demos/fire) */
+ _tnl_run_empty_cassette( ctx, IM );
}
else if ((IM->OrFlag & VERT_DATA) == VERT_ELT &&
ctx->Array.LockCount &&