istereo2

diff src/istereo.c @ 24:9d53a4938ce8

port to android mostly complete, ads not done, and needs some polishing
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 04 Oct 2015 08:15:24 +0300
parents c6971ff4795e
children 33ba8618972c
line diff
     1.1 --- a/src/istereo.c	Sat Oct 03 06:10:30 2015 +0300
     1.2 +++ b/src/istereo.c	Sun Oct 04 08:15:24 2015 +0300
     1.3 @@ -410,7 +410,7 @@
     1.4  	glViewport(0, 0, x, y);
     1.5  
     1.6  	float aspect = (float)x / (float)y;
     1.7 -	float maxfov = 40.0;
     1.8 +	float maxfov = 42.0;
     1.9  	float vfov = aspect > 1.0 ? maxfov / aspect : maxfov;
    1.10  
    1.11  	cam_fov(vfov);
    1.12 @@ -466,14 +466,14 @@
    1.13  {
    1.14  	unsigned int prog, vs, ps;
    1.15  
    1.16 -	if(!(vs = get_vertex_shader(find_resource(vfile, 0, 0)))) {
    1.17 +	if(!(vs = load_vertex_shader(find_resource(vfile, 0, 0)))) {
    1.18  		return 0;
    1.19  	}
    1.20 -	if(!(ps = get_pixel_shader(find_resource(pfile, 0, 0)))) {
    1.21 +	if(!(ps = load_pixel_shader(find_resource(pfile, 0, 0)))) {
    1.22  		return 0;
    1.23  	}
    1.24  
    1.25 -	if(!(prog = create_program_link(vs, ps))) {
    1.26 +	if(!(prog = create_program_link(vs, ps, 0))) {
    1.27  		return 0;
    1.28  	}
    1.29  	return prog;