diff options
author | Ian Romanick <[email protected]> | 2010-04-07 14:50:36 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-04-07 16:49:25 -0700 |
commit | 1799a0cd41e1a72673b4b469075e7abfcce8ec71 (patch) | |
tree | 206ff24c276873dc211b65d8faf189c8f94a1af5 /glsl_parser_extras.cpp | |
parent | 56b8b214107a0320c7277cd832480998057f8413 (diff) |
Emit a warning when an unknown extension is used with #extension
Diffstat (limited to 'glsl_parser_extras.cpp')
-rw-r--r-- | glsl_parser_extras.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); } } |