diff options
author | Brian Paul <[email protected]> | 2009-06-24 16:12:20 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-06-26 13:16:33 -0600 |
commit | 09313043e7d5b91465846c9064b95871f9f03cc3 (patch) | |
tree | 8920d1d4f82ba87c53fb438b1159bdce6e20efc8 /src/mesa | |
parent | 5951ab311db1e716cada3ada87187e50d4434ee4 (diff) |
glsl: fix uninitialized var in _slang_gen_for_without_continue()
Diffstat (limited to 'src/mesa')
-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 3b58ee4cbd3..4623b6b5bcd 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); } |