summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_extensions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r--src/mesa/state_tracker/st_extensions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 60aa8ccec0b..f04ff4c3dec 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -617,7 +617,7 @@ void st_init_extensions(struct st_context *st)
if (glsl_feature_level >= 330)
ctx->Const.GLSLVersion = 330;
- _mesa_override_glsl_version(st->ctx);
+ _mesa_override_glsl_version(&st->ctx->Const);
if (st->options.force_glsl_version > 0 &&
st->options.force_glsl_version <= ctx->Const.GLSLVersion) {