summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/version.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/version.c')
-rw-r--r--src/mesa/main/version.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c
index b7cc50fc146..7621144c469 100644
--- a/src/mesa/main/version.c
+++ b/src/mesa/main/version.c
@@ -168,7 +168,7 @@ _mesa_get_gl_version_override(void)
* MESA_GLSL_VERSION_OVERRIDE are integers, such as "130".
*/
void
-_mesa_override_glsl_version(struct gl_context *ctx)
+_mesa_override_glsl_version(struct gl_constants *consts)
{
const char *env_var = "MESA_GLSL_VERSION_OVERRIDE";
const char *version;
@@ -179,7 +179,7 @@ _mesa_override_glsl_version(struct gl_context *ctx)
return;
}
- n = sscanf(version, "%u", &ctx->Const.GLSLVersion);
+ n = sscanf(version, "%u", &consts->GLSLVersion);
if (n != 1) {
fprintf(stderr, "error: invalid value for %s: %s\n", env_var, version);
return;