summaryrefslogtreecommitdiff
path: root/src/glsl/ir.cpp
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-08-02 11:20:32 -0700
committerEric Anholt <eric@anholt.net>2010-08-02 11:20:32 -0700
commit960ba0014af7009f8543c55f455271cf3cb45cd6 (patch)
tree054e8066ba968cd89939482212d90dfc3618198e /src/glsl/ir.cpp
parentb8db38e1c4f639cb0a063250d43f5a0ef6afd50f (diff)
glsl2: Initialize the ARB_fcc fields of ir_variable.
Fixes intermittent failure in glsl-arb-fragment-coord-conventions.
Diffstat (limited to 'src/glsl/ir.cpp')
-rw-r--r--src/glsl/ir.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp
index 2b5f441ddd..79cbaa9ea0 100644
--- a/src/glsl/ir.cpp
+++ b/src/glsl/ir.cpp
@@ -802,6 +802,8 @@ ir_variable::ir_variable(const struct glsl_type *type, const char *name,
this->location = -1;
this->warn_extension = NULL;
this->constant_value = NULL;
+ this->origin_upper_left = false;
+ this->pixel_center_integer = false;
if (type && type->base_type == GLSL_TYPE_SAMPLER)
this->read_only = true;