mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b=907986 don't calculate upProjection twice r=padenot
--HG-- extra : transplant_source : %8E%E1r%9F%AC%EB%C6%9A%EE_%10%0F%B9%1D%EF%85%EBu%CD%96
This commit is contained in:
parent
48a1b73523
commit
e43bef2026
@ -422,7 +422,7 @@ PannerNodeEngine::ComputeAzimuthAndElevation(float& aAzimuth, float& aElevation)
|
||||
aAzimuth = 450 - aAzimuth;
|
||||
}
|
||||
|
||||
aElevation = 90 - 180 * acos(sourceListener.DotProduct(up)) / M_PI;
|
||||
aElevation = 90 - 180 * acos(upProjection) / M_PI;
|
||||
|
||||
if (aElevation > 90) {
|
||||
aElevation = 180 - aElevation;
|
||||
|
Loading…
Reference in New Issue
Block a user