From 0293f8d8ce8ff6175d9818874976584b81bd7a56 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 21 Feb 2023 00:28:52 -0500 Subject: [PATCH] mesa: fix glPopClientAttrib with fixed-func VP and zero-stride varyings 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 Part-of: --- src/mesa/main/attrib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index f2eaddf..af8816f 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -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); } -- 2.7.4