From ff1dd2aa99bd8261623452e430fa276f05119702 Mon Sep 17 00:00:00 2001 From: Learn OpenGL ES Date: Thu, 19 Sep 2013 14:21:05 -0400 Subject: Update 'const' coding style. --- linmath.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linmath.h b/linmath.h index 930061c..7333d9a 100644 --- a/linmath.h +++ b/linmath.h @@ -334,8 +334,8 @@ static inline void mat4x4_ortho(mat4x4 M, float l, float r, float b, float t, fl static inline void mat4x4_perspective(mat4x4 m, float y_fov_in_degrees, float aspect, float n, float f) { /* Adapted from Android's OpenGL Matrix.java. */ - const float angle_in_radians = (float) (y_fov_in_degrees * M_PI / 180.0); - const float a = (float) (1.0 / tan(angle_in_radians / 2.0)); + float const angle_in_radians = (float) (y_fov_in_degrees * M_PI / 180.0); + float const a = (float) (1.0 / tan(angle_in_radians / 2.0)); m[0][0] = a / aspect; m[1][0] = 0.0f; -- cgit v1.2.3