diff options
author | Ian Romanick <[email protected]> | 2010-10-07 17:21:22 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-10-08 14:21:23 -0700 |
commit | 68a4fc9d5a9dd3b61472451d659275531253b67d (patch) | |
tree | 2458cf332f819c61cbdc589e637cc0f171328892 /src/glsl/ir_variable.cpp | |
parent | eee68d3631813580a14fa51fda6f0c959279256c (diff) |
glsl: Add linker support for explicit attribute locations
Diffstat (limited to 'src/glsl/ir_variable.cpp')
-rw-r--r-- | src/glsl/ir_variable.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir_variable.cpp b/src/glsl/ir_variable.cpp index 1eff740ef96..ddc3bb0b9f3 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. |