diff options
author | Brian Paul <[email protected]> | 2008-07-24 15:49:09 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-07-29 17:23:52 -0600 |
commit | 16dc993d4f01f6882933953115abc6ec7d93ba0b (patch) | |
tree | b7570163c2c586997538d59f104dd41f45f2bdca /src/mesa/shader/slang/slang_emit.c | |
parent | 3d500f00d2a09becccd62abc0472090c4faa53d6 (diff) |
mesa: gls: fix broken else clause of conditional break/continue
In the following case:
for () {
if (cond)
break; // or continue;
else
something;
}
The "something" block didn't get emitted.
Diffstat (limited to 'src/mesa/shader/slang/slang_emit.c')
-rw-r--r-- | src/mesa/shader/slang/slang_emit.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c index c28894630ce..1f4d962bdf6 100644 --- a/src/mesa/shader/slang/slang_emit.c +++ b/src/mesa/shader/slang/slang_emit.c @@ -161,9 +161,7 @@ free_temp_storage(slang_var_table *vt, slang_ir_node *n) if (_slang_is_temp(vt, n->Store)) { _slang_free_temp(vt, n->Store); n->Store->Index = -1; - n->Store->Size = -1; - /*_mesa_free(n->Store);*/ /* XXX leak */ - n->Store = NULL; + n->Store = NULL; /* XXX this may not be needed */ } } } |