aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLearn OpenGL ES <admin@learnopengles.com>2013-09-19 14:21:05 -0400
committerLearn OpenGL ES <admin@learnopengles.com>2013-09-19 14:21:05 -0400
commitff1dd2aa99bd8261623452e430fa276f05119702 (patch)
tree59230883db8d00b898c5d6c7fce3d105dd000610
parent6f985fb04f798b1412a43c133d1f14c58f3ebb00 (diff)
downloadlinmath.h-ff1dd2aa99bd8261623452e430fa276f05119702.tar.gz
linmath.h-ff1dd2aa99bd8261623452e430fa276f05119702.tar.bz2
Update 'const' coding style.
-rw-r--r--linmath.h4
1 files 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;