mesa: fix glPopClientAttrib with fixed-func VP and zero-stride varyings
authorMarek Olšák <marek.olsak@amd.com>
Tue, 21 Feb 2023 05:28:52 +0000 (00:28 -0500)
committerMarge Bot <emma+marge@anholt.net>
Thu, 2 Mar 2023 23:38:12 +0000 (23:38 +0000)
This was missed.

Fixes: 3a294ff01fb9d1d8b - mesa: move the _mesa_set_varying_vp_inputs call to where the state changes
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8246

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21438>

src/mesa/main/attrib.c

index f2eaddf..af8816f 100644 (file)
@@ -1313,6 +1313,8 @@ restore_array_attrib(struct gl_context *ctx,
    }
 
    _mesa_update_edgeflag_state_vao(ctx);
+   _mesa_set_varying_vp_inputs(ctx, ctx->VertexProgram._VPModeInputFilter &
+                               ctx->Array.VAO->_EnabledWithMapMode);
 }