diff options
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r-- | src/mesa/main/state.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index fb97165db91..be8f3f302c6 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -459,21 +459,13 @@ _mesa_set_vp_override(struct gl_context *ctx, GLboolean flag) static void -set_new_array(struct gl_context *ctx) -{ - _vbo_set_recalculate_inputs(ctx); - ctx->NewDriverState |= ctx->DriverFlags.NewArray; -} - - -static void set_vertex_processing_mode(struct gl_context *ctx, gl_vertex_processing_mode m) { if (ctx->VertexProgram._VPMode == m) return; /* On change we may get new maps into the current values */ - set_new_array(ctx); + ctx->NewDriverState |= ctx->DriverFlags.NewArray; /* Finally memorize the value */ ctx->VertexProgram._VPMode = m; @@ -532,7 +524,7 @@ _mesa_set_draw_vao(struct gl_context *ctx, struct gl_vertex_array_object *vao, new_array = true; if (new_array) - set_new_array(ctx); + ctx->NewDriverState |= ctx->DriverFlags.NewArray; ctx->Array._DrawVAOEnabledAttribs = enabled; _mesa_set_varying_vp_inputs(ctx, enabled); |