From d9e046af76a1c1ed60c5763f2c94f800c477bd95 Mon Sep 17 00:00:00 2001 From: Wolfgang Draxinger Date: Mon, 21 Oct 2013 02:59:08 +0200 Subject: fixed bug in perspective introduced by contribution made by learnopengles --- linmath.h | 6 +++--- 1 file 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; -- cgit v1.2.3-54-g00ecf