From: Brian Paul Date: Wed, 28 Sep 2011 19:16:25 +0000 (-0600) Subject: st/mesa: include version.h and fix _mesa_override_glsl_version() call X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3bb41e7b2d359e02f6a1ad8df6be52d9aea7d296;p=mesa.git st/mesa: include version.h and fix _mesa_override_glsl_version() call --- 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; } }