summaryrefslogtreecommitdiffstats
path: root/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-04-07 14:50:36 -0700
committerIan Romanick <[email protected]>2010-04-07 16:49:25 -0700
commit1799a0cd41e1a72673b4b469075e7abfcce8ec71 (patch)
tree206ff24c276873dc211b65d8faf189c8f94a1af5 /glsl_parser_extras.cpp
parent56b8b214107a0320c7277cd832480998057f8413 (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.cpp3
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);
}
}