summaryrefslogtreecommitdiff
path: root/ir.cpp
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-04-06 10:30:54 -0700
committerEric Anholt <eric@anholt.net>2010-04-06 11:42:34 -0700
commit326c676236e6a3c90db63e4d0c893aa4f9c21876 (patch)
treeb3513c8d9bb5c0cd596b8d3486edb69136e955f8 /ir.cpp
parent3fff009af169313fa22996d93ad195cf12729763 (diff)
Handle constant expressions using derefs of const values.
Fixes CorrectParse1.frag and makes for a ton of folding in CorrectParse2.frag.
Diffstat (limited to 'ir.cpp')
-rw-r--r--ir.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ir.cpp b/ir.cpp
index 88308ce..0708e49 100644
--- a/ir.cpp
+++ b/ir.cpp
@@ -338,6 +338,7 @@ ir_variable::ir_variable(const struct glsl_type *type, const char *name)
{
this->type = type;
this->name = name;
+ this->constant_value = NULL;
if (type && type->base_type == GLSL_TYPE_SAMPLER)
this->read_only = true;