aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/link_functions.cpp
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-08-09 08:20:19 +0200
committermarha <marha@users.sourceforge.net>2011-08-09 08:20:19 +0200
commit93ed12672618a2e321cb79a3b3a656aae63d6beb (patch)
treef05cc2daca62dcd4b312e7bc0cf392cb8b53d5ce /mesalib/src/glsl/link_functions.cpp
parent0c2b3e6fd26158cb97f4210cc891e218801b4b25 (diff)
downloadvcxsrv-93ed12672618a2e321cb79a3b3a656aae63d6beb.tar.gz
vcxsrv-93ed12672618a2e321cb79a3b3a656aae63d6beb.tar.bz2
vcxsrv-93ed12672618a2e321cb79a3b3a656aae63d6beb.zip
xrandrproto mesa git update 9 aug 2011
Diffstat (limited to 'mesalib/src/glsl/link_functions.cpp')
-rw-r--r--mesalib/src/glsl/link_functions.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/mesalib/src/glsl/link_functions.cpp b/mesalib/src/glsl/link_functions.cpp
index d40f771e3..acee32712 100644
--- a/mesalib/src/glsl/link_functions.cpp
+++ b/mesalib/src/glsl/link_functions.cpp
@@ -104,10 +104,12 @@ public:
if (f == NULL) {
f = new(linked) ir_function(name);
- /* Add the new function to the linked IR.
+ /* Add the new function to the linked IR. Put it at the end
+ * so that it comes after any global variable declarations
+ * that it refers to.
*/
linked->symbols->add_function(f);
- linked->ir->push_head(f);
+ linked->ir->push_tail(f);
}
ir_function_signature *linked_sig =