ir_variable: Track the location of uniforms, varings, attributes, etc.

This commit is contained in:
Ian Romanick
2010-06-21 11:42:02 -07:00
parent 371019248e
commit 69a079aee8
2 changed files with 18 additions and 0 deletions
+1
View File
@@ -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)