From 3bb41e7b2d359e02f6a1ad8df6be52d9aea7d296 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 28 Sep 2011 13:16:25 -0600 Subject: [PATCH] st/mesa: include version.h and fix _mesa_override_glsl_version() call --- src/mesa/state_tracker/st_extensions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 5506db6c4e9..e6572c85adf 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -30,6 +30,7 @@ #include "main/context.h" #include "main/macros.h" #include "main/mfeatures.h" +#include "main/version.h" #include "pipe/p_context.h" #include "pipe/p_defines.h" @@ -216,7 +217,7 @@ void st_init_limits(struct st_context *st) c->MaxProgramTexelOffset = screen->get_param(screen, PIPE_CAP_MAX_TEXEL_OFFSET); c->GLSLVersion = 120; - _mesa_override_glsl_version(c); + _mesa_override_glsl_version(st->ctx); c->UniformBooleanTrue = ~0; } } -- 2.30.2