summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_parser_extras.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-01-30 09:50:35 -0800
committerEric Anholt <[email protected]>2012-02-03 11:07:04 +0100
commit57e44371a5b6aa8122b6a482ed6bd33e797ea1d2 (patch)
tree73824cdf7b1a39e036dc21ffb7d197643b6c2e98 /src/glsl/glsl_parser_extras.h
parent140632190cf41e6a035ca199b181091d4ed46986 (diff)
glsl: Add error case for switch() with two default cases.
Fixes piglit switch-case-duplicated.vert. NOTE: This is a candidate for the 8.0 branch. Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/glsl_parser_extras.h')
-rw-r--r--src/glsl/glsl_parser_extras.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser_extras.h b/src/glsl/glsl_parser_extras.h
index d5d5101a820..ee8f71b8280 100644
--- a/src/glsl/glsl_parser_extras.h
+++ b/src/glsl/glsl_parser_extras.h
@@ -51,6 +51,7 @@ struct glsl_switch_state {
/** Table of constant values already used in case labels */
struct hash_table *labels_ht;
+ class ast_case_label *previous_default;
bool is_switch_innermost; // if switch stmt is closest to break, ...
};