From b9e27cc1426e3242a003fa5ae91fab330694009a Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 18 Jan 2012 12:14:09 -0800 Subject: mesa: Add a flag for forcing all GLSL extensions to "warn". NOTE: This is a candidate for the 8.0 branch. Reviewed-by: Kenneth Graunke --- src/glsl/glsl_parser_extras.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/glsl') diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index 0b53232e9e7..7f8d47ce9bc 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src/glsl/glsl_parser_extras.cpp @@ -114,6 +114,9 @@ _mesa_glsl_parse_state::_mesa_glsl_parse_state(struct gl_context *ctx, } this->supported_version_string = supported; + + if (ctx->Const.ForceGLSLExtensionsWarn) + _mesa_glsl_process_extension("all", NULL, "warn", NULL, this); } const char * -- cgit v1.2.3