ir_to_mesa: Fix uninitalized value.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 2 Jul 2010 09:50:40 +0000 (02:50 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 3 Jul 2010 01:03:58 +0000 (18:03 -0700)
src/mesa/shader/ir_to_mesa.cpp

index 87d6f8452a26f8cad4b687ed41b3542866a52314..547b18402f90c6db242a59262cc4e20760a55f95 100644 (file)
@@ -1546,7 +1546,7 @@ static void
 set_branchtargets(struct prog_instruction *mesa_instructions,
                  int num_instructions)
 {
-   int if_count = 0, loop_count;
+   int if_count = 0, loop_count = 0;
    int *if_stack, *loop_stack;
    int if_stack_pos = 0, loop_stack_pos = 0;
    int i, j;