From 1799a0cd41e1a72673b4b469075e7abfcce8ec71 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 7 Apr 2010 14:50:36 -0700 Subject: [PATCH] Emit a warning when an unknown extension is used with #extension --- glsl_parser_extras.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); } } -- 2.30.2