From eee68d3631813580a14fa51fda6f0c959279256c Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 7 Oct 2010 15:13:38 -0700 Subject: glsl: Track explicit location in AST to IR translation --- src/glsl/ir.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/glsl/ir.h') diff --git a/src/glsl/ir.h b/src/glsl/ir.h index fa246b5e57..3503bc9c89 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -288,6 +288,15 @@ public: unsigned pixel_center_integer:1; /*@}*/ + /** + * Was the location explicitly set in the shader? + * + * If the location is explicitly set in the shader, it \b cannot be changed + * by the linker or by the API (e.g., calls to \c glBindAttribLocation have + * no effect). + */ + unsigned explicit_location:1; + /** * Storage location of the base of this variable * -- cgit v1.2.3