summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-07-02 02:50:40 -0700
committerKenneth Graunke <[email protected]>2010-07-02 18:03:58 -0700
commite2a358348b143a163c065d82c7375e6a94e98f2a (patch)
treea830c19a35e2925fd0bf7b08a6e3fd7c3a425a20
parentddc3aa07832c3fa35382b57ce2539dbac5a6158d (diff)
ir_to_mesa: Fix uninitalized value.
-rw-r--r--src/mesa/shader/ir_to_mesa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp
index 87d6f8452a2..547b18402f9 100644
--- a/src/mesa/shader/ir_to_mesa.cpp
+++ b/src/mesa/shader/ir_to_mesa.cpp
@@ -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;