From d9a6f4360a617fccfb3987f9ec276012a9a14b75 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 3 Aug 2014 03:40:49 +0200 Subject: mesa: make _mesa_override_glsl_version context-independent Reviewed-by: Ian Romanick Reviewed-by: Ilia Mirkin --- src/mesa/main/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/main/context.c') diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 50aae8bf6fa..0f28dbf7341 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -641,7 +641,7 @@ _mesa_init_constants(struct gl_context *ctx) /* Shading language version */ if (_mesa_is_desktop_gl(ctx)) { ctx->Const.GLSLVersion = 120; - _mesa_override_glsl_version(ctx); + _mesa_override_glsl_version(&ctx->Const); } else if (ctx->API == API_OPENGLES2) { ctx->Const.GLSLVersion = 100; -- cgit v1.2.3