From: Ian Romanick Date: Wed, 7 Apr 2010 21:50:36 +0000 (-0700) Subject: Emit a warning when an unknown extension is used with #extension X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1799a0cd41e1a72673b4b469075e7abfcce8ec71;p=mesa.git Emit a warning when an unknown extension is used with #extension --- diff --git a/glsl_parser_extras.cpp b/glsl_parser_extras.cpp index de67e849dfa..8beea55573a 100644 --- a/glsl_parser_extras.cpp +++ b/glsl_parser_extras.cpp @@ -130,6 +130,9 @@ _mesa_glsl_process_extension(const char *name, YYLTYPE *name_locp, _mesa_glsl_error(name_locp, state, "Unknown extension `%s'", name); return false; + } else { + _mesa_glsl_warning(name_locp, state, "Unknown extension `%s'", + name); } }