summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-06-17 00:35:46 -0700
committerCarl Worth <cworth@cworth.org>2010-06-23 16:12:53 -0700
commit7fd7104fbb331e7d9fae7a79c6eca13dda3dfc55 (patch)
treeb86392615524a0b9997a5cd58a054474c585c37a
parenta9d58ad6c9ca4243c8a4b35fbf562c8123593a05 (diff)
ir_variable: Add some missing initialization to the constructor.
Thanks to valgrind for noticing this problem.
-rw-r--r--ir.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ir.cpp b/ir.cpp
index 9514201..98b085e 100644
--- a/ir.cpp
+++ b/ir.cpp
@@ -727,11 +727,13 @@ ir_swizzle::variable_referenced()
ir_variable::ir_variable(const struct glsl_type *type, const char *name)
: max_array_access(0), read_only(false), centroid(false), invariant(false),
- mode(ir_var_auto), interpolation(ir_var_smooth)
+ shader_in(false), shader_out(false),
+ mode(ir_var_auto), interpolation(ir_var_smooth), array_lvalue(false)
{
this->type = type;
this->name = name;
this->location = -1;
+ this->warn_extension = NULL;
this->constant_value = NULL;
if (type && type->base_type == GLSL_TYPE_SAMPLER)