aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Draxinger <Wolfgang.Draxinger@draxit.de>2013-10-21 02:59:08 +0200
committerWolfgang Draxinger <Wolfgang.Draxinger@draxit.de>2013-10-21 02:59:08 +0200
commitd9e046af76a1c1ed60c5763f2c94f800c477bd95 (patch)
tree096a3f923982f7da4d0d8d2de23bb8bc2ab63bc5
parent34f34c212da4ba62c7212b862f7a22f9c0a57615 (diff)
downloadlinmath-d9e046af76a1c1ed60c5763f2c94f800c477bd95.tar.gz
linmath-d9e046af76a1c1ed60c5763f2c94f800c477bd95.tar.xz
linmath-d9e046af76a1c1ed60c5763f2c94f800c477bd95.zip
fixed bug in perspective introduced by contribution made by learnopengles
-rw-r--r--linmath.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/linmath.h b/linmath.h
index f54e75b..4aa6ac4 100644
--- a/linmath.h
+++ b/linmath.h
@@ -338,9 +338,9 @@ static inline void mat4x4_perspective(mat4x4 m, float y_fov_in_degrees, float as
float const a = (float) (1.0 / tan(angle_in_radians / 2.0));
m[0][0] = a / aspect;
- m[1][0] = 0.0f;
- m[2][0] = 0.0f;
- m[3][0] = 0.0f;
+ m[0][1] = 0.0f;
+ m[0][2] = 0.0f;
+ m[0][3] = 0.0f;
m[1][0] = 0.0f;
m[1][1] = a;