glsl2: fix bug in atan(y, x) function
authorBrian Paul <brianp@vmware.com>
Wed, 1 Sep 2010 01:13:09 +0000 (19:13 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 1 Sep 2010 01:15:07 +0000 (19:15 -0600)
commit16c733495d74d8c2443aa915a55df97c02b415c7
tree4917991d2a6398cffe82d232c13c085f0bec9650
parent9b075cb9fa9eb6a95d0816283ef01ae72dafa680
glsl2: fix bug in atan(y, x) function

When x==0, the result was wrong.  Fixes piglit glsl-fs-atan-1.shader_test
src/glsl/builtin_function.cpp
src/glsl/builtins/ir/atan