summaryrefslogtreecommitdiff
path: root/ir.cpp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-06-21 11:42:02 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-06-23 10:56:03 -0700
commit69a079aee8f79104501faeb2a5092b643f956d33 (patch)
tree3f4a609f0d071c97c35b598b75bf0fee5c58a24f /ir.cpp
parent371019248ef94ddd7ee2491813e6f41c0412b2ba (diff)
ir_variable: Track the location of uniforms, varings, attributes, etc.
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 61589c3..08b2d88 100644
--- a/ir.cpp
+++ b/ir.cpp
@@ -731,6 +731,7 @@ ir_variable::ir_variable(const struct glsl_type *type, const char *name)
{
this->type = type;
this->name = name;
+ this->location = -1;
this->constant_value = NULL;
if (type && type->base_type == GLSL_TYPE_SAMPLER)