st/mesa: include version.h and fix _mesa_override_glsl_version() call
authorBrian Paul <brianp@vmware.com>
Wed, 28 Sep 2011 19:16:25 +0000 (13:16 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 28 Sep 2011 19:17:11 +0000 (13:17 -0600)
src/mesa/state_tracker/st_extensions.c

index 5506db6c4e9b0a8f57d6803703a55a99da812a72..e6572c85adff9d73c62a15f82b82652a776e9773 100644 (file)
@@ -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;
    }
 }