diff options
author | Brian Paul <brianp@vmware.com> | 2009-06-24 16:12:20 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-06-24 16:12:20 -0600 |
commit | 250adfecf6f3824c163b1a455637d8bf345ce5e0 (patch) | |
tree | a4ca486e1f9d374eafd13227eca827332d1a159e | |
parent | 799a197d99563a2fe4b7e965c0da93248501644b (diff) |
glsl: fix uninitialized var in _slang_gen_for_without_continue()
-rw-r--r-- | 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 3b58ee4cbd..4623b6b5bc 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); } |