libgoatvr

diff example/src/main.c @ 6:b71314e80654

fixed the null plugin
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 19 Sep 2014 05:30:20 +0300
parents e63cb28fc644
children 3d9ec6fe97d7
line diff
     1.1 --- a/example/src/main.c	Thu Sep 18 10:56:45 2014 +0300
     1.2 +++ b/example/src/main.c	Fri Sep 19 05:30:20 2014 +0300
     1.3 @@ -96,8 +96,7 @@
     1.4  	update_rtarg(fb_width, fb_height);
     1.5  
     1.6  	/* set our render texture and its active area */
     1.7 -	vr_output_texture(fb_tex, 0, (float)(fb_tex_height - fb_height) / (float)fb_tex_height,
     1.8 -			(float)fb_width / (float)fb_tex_width, 1.0);
     1.9 +	vr_output_texture(fb_tex, 0, 0, (float)fb_width / (float)fb_tex_width, (float)fb_height / (float)fb_tex_height);
    1.10  
    1.11  	glEnable(GL_DEPTH_TEST);
    1.12  	glEnable(GL_CULL_FACE);