From a9315627bc35d5447484a804ecd891c8711a49d3 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sat, 10 Jun 2017 00:52:51 +0200 Subject: mesa: make _mesa_set_varying_vp_inputs a no-op in GL core profile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit just don't set _NEW_VARYING_VP_INPUTS. Reviewed-by: Nicolai Hähnle Reviewed-by: Brian Paul Reviewed-by: Timothy Arceri --- src/mesa/main/state.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesa/main/state.c') diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index ebdc1065da8..2b4d8d46ea0 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -406,6 +406,10 @@ void _mesa_set_varying_vp_inputs( struct gl_context *ctx, GLbitfield64 varying_inputs ) { + if (ctx->API != API_OPENGL_COMPAT && + ctx->API != API_OPENGLES) + return; + if (ctx->varying_vp_inputs != varying_inputs) { ctx->varying_vp_inputs = varying_inputs; -- cgit v1.2.3