diff options
author | Chad Versace <[email protected]> | 2011-01-16 21:55:01 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2011-01-17 10:20:47 -0800 |
commit | a9bf8c12ee5cad398b77b7e7767ad6ef789ce877 (patch) | |
tree | 3f8aafcf540f26b89cc99c4cb65bc92114711378 /src | |
parent | 08a286c9cc8fecb081057e0f551c88a446c47b6f (diff) |
glsl: Remove redundant semantic check in parser
The removed semantic check also exists in ast_type_specifier::hir(), which
is a more natural location for it.
The check verified that precision statements are applied only to types
float and int.
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/glsl_parser.ypp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/glsl/glsl_parser.ypp b/src/glsl/glsl_parser.ypp index d0941ecef7d..3982167c482 100644 --- a/src/glsl/glsl_parser.ypp +++ b/src/glsl/glsl_parser.ypp @@ -702,12 +702,6 @@ declaration: } | PRECISION precision_qualifier type_specifier_no_prec ';' { - if (($3->type_specifier != ast_float) - && ($3->type_specifier != ast_int)) { - _mesa_glsl_error(& @3, state, "global precision qualifier can " - "only be applied to `int' or `float'\n"); - YYERROR; - } $3->precision = $2; $3->is_precision_statement = true; $$ = $3; |