Mesa (glsl2): ir_to_mesa: Fix uninitalized value.
Ian Romanick
idr at kemper.freedesktop.org
Sat Jul 3 01:59:40 UTC 2010
Module: Mesa
Branch: glsl2
Commit: e2a358348b143a163c065d82c7375e6a94e98f2a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e2a358348b143a163c065d82c7375e6a94e98f2a
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Fri Jul 2 02:50:40 2010 -0700
ir_to_mesa: Fix uninitalized value.
---
src/mesa/shader/ir_to_mesa.cpp | 2 +-
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 87d6f84..547b184 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;
More information about the mesa-commit
mailing list