diff options
author | Wolfgang Draxinger <Wolfgang.Draxinger@draxit.de> | 2013-10-21 02:59:08 +0200 |
---|---|---|
committer | Wolfgang Draxinger <Wolfgang.Draxinger@draxit.de> | 2013-10-21 02:59:08 +0200 |
commit | d9e046af76a1c1ed60c5763f2c94f800c477bd95 (patch) | |
tree | 096a3f923982f7da4d0d8d2de23bb8bc2ab63bc5 | |
parent | 34f34c212da4ba62c7212b862f7a22f9c0a57615 (diff) | |
download | linmath-d9e046af76a1c1ed60c5763f2c94f800c477bd95.tar.gz linmath-d9e046af76a1c1ed60c5763f2c94f800c477bd95.tar.xz linmath-d9e046af76a1c1ed60c5763f2c94f800c477bd95.zip |
fixed bug in perspective introduced by contribution made by learnopengles
-rw-r--r-- | linmath.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |