glsl: Fix scoping bug in if statements.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 18 Aug 2010 20:54:50 +0000 (13:54 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 18 Aug 2010 21:03:25 +0000 (14:03 -0700)
commit665d75cc5a23f8024034d0c4176fb281f94a30e9
tree3069da049deff7566bae8bfca749aeee05a9304a
parentcf37ba34301374aecf16fea659ac70b000a11a55
glsl: Fix scoping bug in if statements.

Fixes glslparsertest/glsl2/scoping-01.frag (successfully compiled but
should've failed) and scoping-02.frag (assertion triggered).
src/glsl/ast_to_hir.cpp