diff options
author | Chris Xiong <chirs241097@gmail.com> | 2018-02-13 00:27:21 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2018-02-13 00:27:21 +0800 |
commit | b859c1accbb2bf7b19f634346528458ccf11b6f1 (patch) | |
tree | 9edc158e77cda0000d020f27c7f17fb3d1c9014c /smelt/glfw/gfx_glfw.cpp | |
parent | 7621516c1ca0ecf9f80d094763a1705c32d7458f (diff) | |
download | SMELT-b859c1accbb2bf7b19f634346528458ccf11b6f1.tar.xz |
Fixed building on Microsoft(R) Windows(TM), a.k.a. the most advanced
operating system ever.
Diffstat (limited to 'smelt/glfw/gfx_glfw.cpp')
-rw-r--r-- | smelt/glfw/gfx_glfw.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/smelt/glfw/gfx_glfw.cpp b/smelt/glfw/gfx_glfw.cpp index d8135e8..c545073 100644 --- a/smelt/glfw/gfx_glfw.cpp +++ b/smelt/glfw/gfx_glfw.cpp @@ -730,7 +730,7 @@ void SMELT_IMPL::configProjectionMatrix2D(int w,int h) void SMELT_IMPL::configProjectionMatrix3D(int w,int h,float fov) { memset(mproj,0,sizeof(mproj)); - float f=1./tanf(M_PI*fov/360.); + float f=1./tanf(PI*fov/360.); float ar=(float)w/(float)h; float Near=0.1,Far=1000.; mproj[0]=f/ar;mproj[5]=f; |