This will need to get refactored when we add support for core profiles or forward-compatible contexts, but we may as well have it in the meantime. This allows us to override the GLSL version and experiment.
Signed-off-by: Kenneth Graunke <kenn...@whitecape.org> --- src/mesa/main/getstring.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/mesa/main/getstring.c b/src/mesa/main/getstring.c index 2f445aa..8816ff6 100644 --- a/src/mesa/main/getstring.c +++ b/src/mesa/main/getstring.c @@ -55,6 +55,16 @@ shading_language_version(struct gl_context *ctx) return (const GLubyte *) "1.30"; case 140: return (const GLubyte *) "1.40"; + case 150: + return (const GLubyte *) "1.50"; + case 330: + return (const GLubyte *) "3.30"; + case 400: + return (const GLubyte *) "4.00"; + case 410: + return (const GLubyte *) "4.10"; + case 420: + return (const GLubyte *) "4.20"; default: _mesa_problem(ctx, "Invalid GLSL version in shading_language_version()"); -- 1.7.11.3 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev