glsl2: Update the callee pointer of calls to newly-linked-in functions.
authorEric Anholt <eric@anholt.net>
Fri, 30 Jul 2010 18:24:23 +0000 (11:24 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 30 Jul 2010 21:57:22 +0000 (14:57 -0700)
Otherwise, ir_function_inlining will see the body of the function from
the unlinked version of the shader, which won't have had the lowering
passes done on it or linking's variable remapping.

src/glsl/link_functions.cpp

index a9ed49a3492cd098ccc95b63091856a30dbd6c72..327be73afe6681ef09516e369bd178f2d022c541 100644 (file)
@@ -164,6 +164,8 @@ public:
        */
       linked_sig->accept(this);
 
+      ir->set_callee(linked_sig);
+
       return visit_continue;
    }