diff options
author | Keith Whitwell <[email protected]> | 2001-05-14 09:00:51 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2001-05-14 09:00:51 +0000 |
commit | 9cf779e7ac5509aa2d8706b882e9a6b43837cebd (patch) | |
tree | 69a56d30db28bf0f2157c8354d965485b3136edd /src/mesa/tnl/t_imm_exec.c | |
parent | b8d091d3503415a29a309dca0ce13b24509bd763 (diff) |
Fix for glean texgen test.
Diffstat (limited to 'src/mesa/tnl/t_imm_exec.c')
-rw-r--r-- | src/mesa/tnl/t_imm_exec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/tnl/t_imm_exec.c b/src/mesa/tnl/t_imm_exec.c index d011bff5133..7ed76b02e53 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.24 2001/05/11 08:11:31 keithw Exp $ */ +/* $Id: t_imm_exec.c,v 1.25 2001/05/14 09:00:51 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -82,7 +82,7 @@ static void reset_input( GLcontext *ctx, IM->ArrayEltFlags = ~ctx->Array._Enabled; IM->ArrayEltIncr = ctx->Array.Vertex.Enabled ? 1 : 0; - IM->ArrayEltFlush = !ctx->Array.LockCount; + IM->ArrayEltFlush = ctx->Array.LockCount ? FLUSH_ELT_LAZY : FLUSH_ELT_EAGER; } void _tnl_reset_exec_input( GLcontext *ctx, @@ -377,7 +377,7 @@ static void exec_vert_cassette( GLcontext *ctx, struct immediate *IM ) if (IM->FlushElt) { /* Orflag is computed twice, but only reach this code if app is * using a mixture of glArrayElement() and glVertex() while - * arrays are locked. + * arrays are locked (else would be in exec_elt_cassette now). */ ASSERT(ctx->Array.LockCount); ASSERT(IM->FlushElt == FLUSH_ELT_LAZY); @@ -440,7 +440,7 @@ void _tnl_execute_cassette( GLcontext *ctx, struct immediate *IM ) TNLcontext *tnl = TNL_CONTEXT(ctx); _tnl_compute_orflag( IM, IM->Start ); - _tnl_copy_immediate_vertices( ctx, IM ); /* ?? flags, orflag above */ + _tnl_copy_immediate_vertices( ctx, IM ); _tnl_get_exec_copy_verts( ctx, IM ); if (tnl->pipeline.build_state_changes) |