diff --git a/src/mesa/main/getstring.c b/src/mesa/main/getstring.c index 3d5ae0b694b..86db39463c1 100644 --- a/src/mesa/main/getstring.c +++ b/src/mesa/main/getstring.c @@ -70,7 +70,9 @@ shading_language_version(struct gl_context *ctx) return (const GLubyte *) "4.60"; default: _mesa_problem(ctx, - "Invalid GLSL version in shading_language_version()"); + "Invalid GLSL version (%d) in shading_language_version()"); + _mesa_problem(ctx, + "Context API GL %s", ctx->API == API_OPENGL_CORE ? "Core" : "Compat"); return (const GLubyte *) 0; } break;