diff --git a/src/Math/Matrix4f.cpp b/src/Math/Matrix4f.cpp index a4fa3da..0259319 100644 --- a/src/Math/Matrix4f.cpp +++ b/src/Math/Matrix4f.cpp @@ -78,7 +78,7 @@ namespace hgl float znear, float zfar) { - float f = 1.0f / tan( deg2rad( 0.5f * field_of_view ) ); + float f = 1.0f / tanf( deg2rad( 0.5f * field_of_view ) ); return Matrix4f( f / aspect_ratio,