ALL: Eliminate LOCAL_PI macro
This commit is contained in:
parent
ada0dd648c
commit
27e12d8a96
22 changed files with 35 additions and 45 deletions
|
@ -231,7 +231,7 @@ void GfxOpenGL::setupCameraFrustum(float fov, float nclip, float fclip) {
|
|||
glMatrixMode(GL_PROJECTION);
|
||||
glLoadIdentity();
|
||||
|
||||
float right = nclip * tan(fov / 2 * (LOCAL_PI / 180));
|
||||
float right = nclip * tan(fov / 2 * ((float)M_PI / 180));
|
||||
glFrustum(-right, right, -right * 0.75, right * 0.75, nclip, fclip);
|
||||
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue