glsl: Fix regression in function out-parameter lvalue detection.
authorEric Anholt <eric@anholt.net>
Tue, 24 Apr 2012 00:24:13 +0000 (17:24 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 4 May 2012 21:00:32 +0000 (14:00 -0700)
commit4595288ba844def45cc858fab44fad3efa1ab4c8
treefabe00c0dfb5e68902938d12473505444ca18cb5
parent3362c7d9b61462855f1e7d67da5d255de1b6ee7e
glsl: Fix regression in function out-parameter lvalue detection.

When doing the var->assigned change in
f2475ca424f7e001be50f64dafa5700f6603d684, I overzealously indented the
second block of code into the "if (var)" test.  Revert these blocks to
the way they were before, just taking advantage of "var" to avoid
re-calling variable_referenced().

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=49066
src/glsl/ast_function.cpp