diff options
author | Chad Versace <chad.versace@intel.com> | 2011-01-16 21:44:57 -0800 |
---|---|---|
committer | Chad Versace <chad.versace@intel.com> | 2011-01-17 10:20:47 -0800 |
commit | 08a286c9cc8fecb081057e0f551c88a446c47b6f (patch) | |
tree | 6b8272d30e0d6a8111af47ccf7129c92a543ef0f /src/glsl/ast_type.cpp | |
parent | 889e1a5b6c6602198d649ea5881e0010dec575e9 (diff) |
glsl: Add support for default precision statements
* Add new field ast_type_specifier::is_precision_statement.
* Add semantic checks in ast_type_specifier::hir().
* Alter parser rules accordingly.
Diffstat (limited to 'src/glsl/ast_type.cpp')
-rw-r--r-- | src/glsl/ast_type.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/ast_type.cpp b/src/glsl/ast_type.cpp index f9c371514f5..d14077473f0 100644 --- a/src/glsl/ast_type.cpp +++ b/src/glsl/ast_type.cpp @@ -49,7 +49,8 @@ ast_type_specifier::print(void) const ast_type_specifier::ast_type_specifier(int specifier) : type_specifier(ast_types(specifier)), type_name(NULL), structure(NULL), - is_array(false), array_size(NULL), precision(ast_precision_none) + is_array(false), array_size(NULL), precision(ast_precision_none), + is_precision_statement(false) { static const char *const names[] = { "void", |