medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 5f9f71dc6d0c908e393bb3d1e9a389d32789ce51
parent 160046f721c555f5d5af793d9ce0c5ca71181383
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Nov 13 22:21:52 +0200

MSVC warning

Diffstat:
linear_algebra.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/linear_algebra.h b/linear_algebra.h @@ -574,7 +574,7 @@ forceinline m4 m4_ortho( float left, float right, float top, float bottom, float } forceinline m4 m4_perspective( float vertical_fov_degrees, float aspect_ratio, float near, float far ) { - float vertical_fov = vertical_fov_degrees * M_PI / 180.0f / 2.0f; + float vertical_fov = vertical_fov_degrees * float( M_PI ) / 180.0f / 2.0f; float horizontal_fov = atanf( tanf( vertical_fov ) * aspect_ratio ); return m4(