ALL: Eliminate LOCAL_PI macro
This commit is contained in:
parent
ada0dd648c
commit
27e12d8a96
22 changed files with 35 additions and 45 deletions
|
@ -441,7 +441,7 @@ void GfxOpenGLS::setupCameraFrustum(float fov, float nclip, float fclip) {
|
|||
|
||||
_fov = fov; _nclip = nclip; _fclip = fclip;
|
||||
|
||||
float right = nclip * tan(fov / 2 * (LOCAL_PI / 180));
|
||||
float right = nclip * tan(fov / 2 * ((float)M_PI / 180));
|
||||
float top = right * 0.75;
|
||||
|
||||
_projMatrix = makeFrustumMatrix(-right, right, -top, top, nclip, fclip);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue