summaryrefslogtreecommitdiff
path: root/src/glsl/ast_type.cpp
diff options
context:
space:
mode:
authorChad Versace <chad.versace@intel.com>2011-01-14 09:50:55 -0800
committerChad Versace <chad.versace@intel.com>2011-01-17 09:41:25 -0800
commitaaa31bf8f44e1aab0e87160661196b0a16e1d015 (patch)
tree7a0929535e3fe18ed1390a440e05494738f2dc08 /src/glsl/ast_type.cpp
parent1eb0f17fa4aa548779cb7d8ffbd86de3523d6796 (diff)
glsl: Change default value of ast_type_specifier::precision
Change default value to ast_precision_none, which denotes the absence of a precision of a qualifier. Previously, the default value was ast_precision_high. This made it impossible to detect if a precision qualifier was present or not.
Diffstat (limited to 'src/glsl/ast_type.cpp')
-rw-r--r--src/glsl/ast_type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ast_type.cpp b/src/glsl/ast_type.cpp
index f23e5457621..f9c371514f5 100644
--- a/src/glsl/ast_type.cpp
+++ b/src/glsl/ast_type.cpp
@@ -49,7 +49,7 @@ 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_high)
+ is_array(false), array_size(NULL), precision(ast_precision_none)
{
static const char *const names[] = {
"void",