summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shader_query.cpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2011-11-04 16:08:52 -0700
committerIan Romanick <[email protected]>2011-11-08 11:10:11 -0800
commitb12b5d9ab5c0153c93ca5ad9cd93cb36e41be4eb (patch)
tree774cdb05ed2b05230cf54f0e5aadf1a3d836c2e8 /src/mesa/main/shader_query.cpp
parent4464a4b27b66f832acbe52b0a002c04415924c14 (diff)
linker: Use app-specified fragment data location during linking
Fixes piglit's bindfragdata-link-error. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Paul Berry <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/shader_query.cpp')
-rw-r--r--src/mesa/main/shader_query.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp
index 0694b48aeb1..23667a13328 100644
--- a/src/mesa/main/shader_query.cpp
+++ b/src/mesa/main/shader_query.cpp
@@ -267,7 +267,7 @@ _mesa_BindFragDataLocation(GLuint program, GLuint colorNumber,
* FRAG_RESULT_DATA0 because that's how the linker differentiates
* between built-in attributes and user-defined attributes.
*/
-
+ shProg->FragDataBindings->put(colorNumber + FRAG_RESULT_DATA0, name);
/*
* Note that this binding won't go into effect until