commit | 68a4fc9d5a9dd3b61472451d659275531253b67d | [log] [tgz] |
---|---|---|
author | Ian Romanick <ian.d.romanick@intel.com> | Thu Oct 07 17:21:22 2010 -0700 |
committer | Ian Romanick <ian.d.romanick@intel.com> | Fri Oct 08 14:21:23 2010 -0700 |
tree | 2458cf332f819c61cbdc589e637cc0f171328892 | |
parent | eee68d3631813580a14fa51fda6f0c959279256c [diff] [blame] |
glsl: Add linker support for explicit attribute locations
diff --git a/src/glsl/ir_variable.cpp b/src/glsl/ir_variable.cpp index 1eff740..ddc3bb0 100644 --- a/src/glsl/ir_variable.cpp +++ b/src/glsl/ir_variable.cpp
@@ -52,6 +52,7 @@ } 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.