diff options
author | Chad Versace <[email protected]> | 2011-02-14 11:16:42 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2011-02-15 15:46:12 -0800 |
commit | f2e9981e43b26ca101b774ea6af1f00617098246 (patch) | |
tree | 89d26373331408ca825bd21c17c43734d9ff2d0f /src/glsl/ir_variable_refcount.h | |
parent | a231ac23f41a38cf9bde80bab4cb6aa8821d4895 (diff) |
Revert "glsl: Fix constant-folding for reciprocal expressions"
This reverts commit b3cf92aa916ee0537ee37723c23a9897ac9cd3e0.
The reverted commit prevented constant-folding of reciprocal expressions
when the reciprocated expression was 0. However, since the spec allows
division by zero, constant-folding *is* permissible in this case.
From Section 5.9 of the GLSL 1.20 spec:
Dividing by zero does not cause an exception but does result in an
unspecified value.
Diffstat (limited to 'src/glsl/ir_variable_refcount.h')
0 files changed, 0 insertions, 0 deletions