glsl2: Use linked ir_constant_variable after linking, instead of unlinked.
authorEric Anholt <eric@anholt.net>
Thu, 5 Aug 2010 00:12:14 +0000 (17:12 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 5 Aug 2010 03:52:33 +0000 (20:52 -0700)
src/glsl/linker.cpp

index 10fd2d5ab9371e4b13ace77bedb398c89840f65d..b2953c67d11a250dc91e8f1d493561c739b3d9a4 100644 (file)
@@ -1293,7 +1293,7 @@ link_shaders(struct gl_shader_program *prog)
         progress = do_dead_code_local(ir) || progress;
         progress = do_dead_code(ir) || progress;
         progress = do_tree_grafting(ir) || progress;
-        progress = do_constant_variable_unlinked(ir) || progress;
+        progress = do_constant_variable(ir) || progress;
         progress = do_constant_folding(ir) || progress;
         progress = do_algebraic(ir) || progress;
         progress = do_if_return(ir) || progress;