diff options
author | Brian Paul <[email protected]> | 2004-01-17 17:33:22 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-01-17 17:33:22 +0000 |
commit | 66f2fd89ea6e46cd76ea62f59c0b2fcdf80b2247 (patch) | |
tree | 78b053246f019c6cc8540fd51b935d9d16e49aef /src/mesa/main/arbprogram.c | |
parent | 8d83242c8c90846082d15cc3cfe204f4f8a4937d (diff) |
added some missing FLUSH_VERTICES calls
Diffstat (limited to 'src/mesa/main/arbprogram.c')
-rw-r--r-- | src/mesa/main/arbprogram.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/main/arbprogram.c b/src/mesa/main/arbprogram.c index 56aa6152630..ab27e086770 100644 --- a/src/mesa/main/arbprogram.c +++ b/src/mesa/main/arbprogram.c @@ -56,6 +56,7 @@ _mesa_EnableVertexAttribArrayARB(GLuint index) return; } + FLUSH_VERTICES(ctx, _NEW_ARRAY); ctx->Array.VertexAttrib[index].Enabled = GL_TRUE; ctx->Array._Enabled |= _NEW_ARRAY_ATTRIB(index); ctx->Array.NewState |= _NEW_ARRAY_ATTRIB(index); @@ -74,6 +75,7 @@ _mesa_DisableVertexAttribArrayARB(GLuint index) return; } + FLUSH_VERTICES(ctx, _NEW_ARRAY); ctx->Array.VertexAttrib[index].Enabled = GL_FALSE; ctx->Array._Enabled &= ~_NEW_ARRAY_ATTRIB(index); ctx->Array.NewState |= _NEW_ARRAY_ATTRIB(index); @@ -189,6 +191,8 @@ _mesa_ProgramStringARB(GLenum target, GLenum format, GLsizei len, GET_CURRENT_CONTEXT(ctx); ASSERT_OUTSIDE_BEGIN_END(ctx); + FLUSH_VERTICES(ctx, _NEW_PROGRAM); + if (target == GL_VERTEX_PROGRAM_ARB && ctx->Extensions.ARB_vertex_program) { struct vertex_program *prog = ctx->VertexProgram.Current; @@ -241,6 +245,8 @@ _mesa_ProgramEnvParameter4fARB(GLenum target, GLuint index, GET_CURRENT_CONTEXT(ctx); ASSERT_OUTSIDE_BEGIN_END(ctx); + FLUSH_VERTICES(ctx, _NEW_PROGRAM); + if (target == GL_FRAGMENT_PROGRAM_ARB && ctx->Extensions.ARB_fragment_program) { if (index >= ctx->Const.MaxFragmentProgramEnvParams) { @@ -296,6 +302,8 @@ _mesa_GetProgramEnvParameterfvARB(GLenum target, GLuint index, { GET_CURRENT_CONTEXT(ctx); + FLUSH_VERTICES(ctx, _NEW_PROGRAM); + if (!ctx->_CurrentProgram) ASSERT_OUTSIDE_BEGIN_END(ctx); @@ -333,6 +341,8 @@ _mesa_ProgramLocalParameter4fARB(GLenum target, GLuint index, struct program *prog; ASSERT_OUTSIDE_BEGIN_END(ctx); + FLUSH_VERTICES(ctx, _NEW_PROGRAM); + if ((target == GL_FRAGMENT_PROGRAM_NV && ctx->Extensions.NV_fragment_program) || (target == GL_FRAGMENT_PROGRAM_ARB |