istereo

diff src/sanegl.c @ 21:75a63f9ab7cc

ha!
author John Tsiombikas <nuclear@mutantstargoat.com>
date Wed, 07 Sep 2011 10:49:11 +0300
parents 2c5620f0670c
children fd39c0198935
line diff
     1.1 --- a/src/sanegl.c	Wed Sep 07 10:15:35 2011 +0300
     1.2 +++ b/src/sanegl.c	Wed Sep 07 10:49:11 2011 +0300
     1.3 @@ -216,7 +216,8 @@
     1.4  
     1.5  void glu_perspective(float vfov, float aspect, float near, float far)
     1.6  {
     1.7 -	float x = near * tan(vfov / 2.0);
     1.8 +	float vfov_rad = M_PI * vfov / 180.0;
     1.9 +	float x = near * tan(vfov_rad / 2.0);
    1.10  	gl_frustum(-aspect * x, aspect * x, -x, x, near, far);
    1.11  }
    1.12