glsl2: Put side effects of the RHS of logic_or in the right branch.
authorEric Anholt <eric@anholt.net>
Thu, 22 Jul 2010 23:30:41 +0000 (16:30 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 22 Jul 2010 23:34:36 +0000 (16:34 -0700)
commita0879b9dd438d78635f047cdd5ed4c72bc831b60
treeb6794a1d303b316ac06cb185a07190578132a5b9
parent432b787b29202301dbfc139c3289521b0bfc3dec
glsl2: Put side effects of the RHS of logic_or in the right branch.

Kind of missing the point to only do the side effects if the LHS
evaluates as true.

Fixes:
glsl1-|| operator, short-circuit
src/glsl/ast_to_hir.cpp