diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 15c3062e5f3..7806b21471e 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -803,7 +803,8 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state) goto invalid_enum_error; if (ctx->Transform.Normalize == state) return; - FLUSH_VERTICES(ctx, _NEW_TRANSFORM, GL_TRANSFORM_BIT | GL_ENABLE_BIT); + FLUSH_VERTICES(ctx, _NEW_TRANSFORM | _NEW_FF_VERT_PROGRAM, + GL_TRANSFORM_BIT | GL_ENABLE_BIT); ctx->Transform.Normalize = state; break; case GL_POINT_SMOOTH: @@ -872,7 +873,8 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state) goto invalid_enum_error; if (ctx->Transform.RescaleNormals == state) return; - FLUSH_VERTICES(ctx, _NEW_TRANSFORM, GL_TRANSFORM_BIT | GL_ENABLE_BIT); + FLUSH_VERTICES(ctx, _NEW_TRANSFORM | _NEW_FF_VERT_PROGRAM, + GL_TRANSFORM_BIT | GL_ENABLE_BIT); ctx->Transform.RescaleNormals = state; break; case GL_SCISSOR_TEST: diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 2ec208c9dba..0967366b057 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -492,10 +492,8 @@ _mesa_update_state_locked( struct gl_context *ctx ) _NEW_COLOR | _NEW_TEXTURE_STATE; } - if (ctx->VertexProgram._UsesTnlProgram) { - prog_flags |= _NEW_FF_VERT_PROGRAM | _NEW_TRANSFORM | _NEW_POINT | - _NEW_FOG; - } + if (ctx->VertexProgram._UsesTnlProgram) + prog_flags |= _NEW_FF_VERT_PROGRAM | _NEW_POINT | _NEW_FOG; if (new_state & prog_flags) { /* When we generate programs from fixed-function vertex/fragment state