summaryrefslogtreecommitdiff
path: root/src/glsl/ir_variable.cpp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-10-07 17:21:22 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-10-08 14:21:23 -0700
commit68a4fc9d5a9dd3b61472451d659275531253b67d (patch)
tree2458cf332f819c61cbdc589e637cc0f171328892 /src/glsl/ir_variable.cpp
parenteee68d3631813580a14fa51fda6f0c959279256c (diff)
glsl: Add linker support for explicit attribute locations
Diffstat (limited to 'src/glsl/ir_variable.cpp')
-rw-r--r--src/glsl/ir_variable.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir_variable.cpp b/src/glsl/ir_variable.cpp
index 1eff740ef9..ddc3bb0b9f 100644
--- a/src/glsl/ir_variable.cpp
+++ b/src/glsl/ir_variable.cpp
@@ -52,6 +52,7 @@ add_variable(const char *name, enum ir_variable_mode mode, int slot,
}
var->location = slot;
+ var->explicit_location = (slot >= 0);
/* Once the variable is created an initialized, add it to the symbol table
* and add the declaration to the IR stream.