aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/state.c
diff options
context:
space:
mode:
authorMathias Fröhlich <[email protected]>2019-05-12 10:35:52 +0200
committerMathias Fröhlich <[email protected]>2019-05-14 18:09:49 +0200
commitfc455797c1b20d989e705d05bb165fa32bc360d0 (patch)
treee7847062021e099ecfed3a666b2ac2d449ab22db /src/mesa/main/state.c
parentb4b1df5a1750e42307a18b660c6e162df5907535 (diff)
mesa: Set _NEW_VARYING_VP_INPUTS iff varying_vp_inputs are set.
Reviewed-by: Marek Olšák <[email protected]> Signed-off-by: Mathias Fröhlich <[email protected]>
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r--src/mesa/main/state.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index 9d8964952cd..3e2eb28dcc5 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -430,15 +430,14 @@ set_varying_vp_inputs(struct gl_context *ctx, GLbitfield varying_inputs)
if (VP_MODE_FF != ctx->VertexProgram._VPMode)
return;
+ /* Only fixed-func generated programs ever uses varying_vp_inputs. */
+ if (!ctx->VertexProgram._MaintainTnlProgram &&
+ !ctx->FragmentProgram._MaintainTexEnvProgram)
+ return;
+
if (ctx->varying_vp_inputs != varying_inputs) {
ctx->varying_vp_inputs = varying_inputs;
-
- /* Only fixed-func generated programs ever use varying_vp_inputs. */
- if (ctx->VertexProgram._MaintainTnlProgram ||
- ctx->FragmentProgram._MaintainTexEnvProgram) {
- ctx->NewState |= _NEW_VARYING_VP_INPUTS;
- }
- /*printf("%s %x\n", __func__, varying_inputs);*/
+ ctx->NewState |= _NEW_VARYING_VP_INPUTS;
}
}