From 68a4fc9d5a9dd3b61472451d659275531253b67d Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 7 Oct 2010 17:21:22 -0700 Subject: glsl: Add linker support for explicit attribute locations --- src/glsl/ir_variable.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/glsl/ir_variable.cpp') 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. -- cgit v1.2.3