oculus1

changeset 20:ff3bfd4da86b

removed unnecessary check for framebuffer resizing when not using vr mode
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 01 Oct 2013 12:51:20 +0300
parents 899cf9ebffb4
children ef4c9d8eeca7
files src/main.cc
diffstat 1 files changed, 0 insertions(+), 20 deletions(-) [+]
line diff
     1.1 --- a/src/main.cc	Sat Sep 28 06:17:34 2013 +0300
     1.2 +++ b/src/main.cc	Tue Oct 01 12:51:20 2013 +0300
     1.3 @@ -500,26 +500,6 @@
     1.4  {
     1.5  	width = x;
     1.6  	height = y;
     1.7 -
     1.8 -	if(!use_vr) {
     1.9 -		rtarg_width = width;
    1.10 -		rtarg_height = height;
    1.11 -
    1.12 -		int new_tex_width = next_pow2(width);
    1.13 -		int new_tex_height = next_pow2(height);
    1.14 -
    1.15 -		if(new_tex_width != rtarg_tex_width || new_tex_height != rtarg_tex_width) {
    1.16 -			// TODO
    1.17 -			exit(1);
    1.18 -		}
    1.19 -
    1.20 -		rtarg_tex_width = new_tex_width;
    1.21 -		rtarg_tex_height = new_tex_height;
    1.22 -
    1.23 -		tex_scale_x = (float)rtarg_width / (float)rtarg_tex_width;
    1.24 -		tex_scale_y = (float)rtarg_height / (float)rtarg_tex_height;
    1.25 -
    1.26 -	}
    1.27  }
    1.28  
    1.29  static void keyb(unsigned char key, int x, int y)