Module: Mesa
Branch: glsl-continue-return
Commit: 250adfecf6f3824c163b1a455637d8bf345ce5e0
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=250adfecf6f3824c163b1a455637d8bf345ce5e0

Author: Brian Paul <[email protected]>
Date:   Wed Jun 24 16:12:20 2009 -0600

glsl: fix uninitialized var in _slang_gen_for_without_continue()

---

 src/mesa/shader/slang/slang_codegen.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/shader/slang/slang_codegen.c 
b/src/mesa/shader/slang/slang_codegen.c
index 3b58ee4..4623b6b 100644
--- a/src/mesa/shader/slang/slang_codegen.c
+++ b/src/mesa/shader/slang/slang_codegen.c
@@ -3171,7 +3171,7 @@ _slang_gen_for_without_continue(slang_assemble_ctx *A, 
slang_operation *oper)
 
    /* declare: bool _condFlag = true */
    {
-      slang_operation *condDecl;
+      slang_operation *condDecl = slang_oper_child(top, 0);
       slang_generate_declaration(A, top->locals, condDecl,
                                  SLANG_SPEC_BOOL, "_condFlag", GL_TRUE);
    }

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to