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/program.c | |
parent | 8d83242c8c90846082d15cc3cfe204f4f8a4937d (diff) |
added some missing FLUSH_VERTICES calls
Diffstat (limited to 'src/mesa/main/program.c')
-rw-r--r-- | src/mesa/main/program.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/program.c b/src/mesa/main/program.c index 83bbb204920..aca9be979dd 100644 --- a/src/mesa/main/program.c +++ b/src/mesa/main/program.c @@ -798,6 +798,9 @@ _mesa_BindProgram(GLenum target, GLuint id) GET_CURRENT_CONTEXT(ctx); ASSERT_OUTSIDE_BEGIN_END(ctx); + /* texture state is dependent on current fragment and vertex programs */ + FLUSH_VERTICES(ctx, _NEW_PROGRAM | _NEW_TEXTURE); + if ((target == GL_VERTEX_PROGRAM_NV && ctx->Extensions.NV_vertex_program) || (target == GL_VERTEX_PROGRAM_ARB @@ -899,7 +902,7 @@ _mesa_DeletePrograms(GLsizei n, const GLuint *ids) { GLint i; GET_CURRENT_CONTEXT(ctx); - ASSERT_OUTSIDE_BEGIN_END(ctx); + ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx); if (n < 0) { _mesa_error( ctx, GL_INVALID_VALUE, "glDeleteProgramsNV" ); |