mesa: Update vertex processing mode on _mesa_UseProgram.
authorMathias Fröhlich <mathias.froehlich@web.de>
Fri, 23 Feb 2018 19:46:20 +0000 (20:46 +0100)
committerMathias Fröhlich <mathias.froehlich@web.de>
Fri, 23 Feb 2018 20:08:35 +0000 (21:08 +0100)
The change is a bug fix for 92d76a169:
  mesa: Provide an alternative to get_vp_mode()
that actually got exposed through 4562a7b0:
  vbo: Make use of _DrawVAO from the dlist code.

Fixes: KHR-GLES31.core.shader_image_load_store.advanced-sso-simple
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105229
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/shaderapi.c

index 59089a12b0c1634268a44fc152d750e48124f89d..76bad7f31eabf066463734c81aaad68c48329dfa 100644 (file)
@@ -2069,6 +2069,8 @@ use_program(GLuint program, bool no_error)
             _mesa_BindProgramPipeline(ctx->Pipeline.Current->Name);
       }
    }
+
+   _mesa_update_vertex_processing_mode(ctx);
 }