From 93ed12672618a2e321cb79a3b3a656aae63d6beb Mon Sep 17 00:00:00 2001 From: marha Date: Tue, 9 Aug 2011 08:20:19 +0200 Subject: xrandrproto mesa git update 9 aug 2011 --- mesalib/src/glsl/link_functions.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mesalib/src/glsl/link_functions.cpp') 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 = -- cgit v1.2.3