mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
glsl: fix atan(0, -1)
Fixes fd.o bug 29388 NOTE: this is a candidate for the 7.8 branch.
This commit is contained in:
parent
918ef7ff18
commit
3d038a3ed2
1 changed files with 1 additions and 1 deletions
|
|
@ -411,7 +411,7 @@ float atan(const float y, const float x)
|
|||
if (abs(x) > 1.0e-4) {
|
||||
r = atan(y / x);
|
||||
if (x < 0.0) {
|
||||
r = r + sign(y) * 3.141593;
|
||||
r = r + 3.141593 - 6.283186 * float(y < 0.0);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue