istereo

changeset 12:9890940948f7

fucking reshape wasn't getting called...
author John Tsiombikas <nuclear@mutantstargoat.com>
date Wed, 07 Sep 2011 08:30:24 +0300
parents 698cbf1a1b97
children fe1cb1c567cc
files src/ES2Renderer.m src/istereo.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/src/ES2Renderer.m	Wed Sep 07 08:25:56 2011 +0300
     1.2 +++ b/src/ES2Renderer.m	Wed Sep 07 08:30:24 2011 +0300
     1.3 @@ -22,7 +22,7 @@
     1.4          glBindFramebuffer(GL_FRAMEBUFFER, defaultFramebuffer);
     1.5          glBindRenderbuffer(GL_RENDERBUFFER, colorRenderbuffer);
     1.6          glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, colorRenderbuffer);
     1.7 -		
     1.8 +
     1.9  		init();
    1.10      }
    1.11  
    1.12 @@ -56,6 +56,8 @@
    1.13          return NO;
    1.14      }
    1.15  
    1.16 +	reshape(0, 0, backingWidth, backingHeight);
    1.17 +
    1.18      return YES;
    1.19  }
    1.20  
     2.1 --- a/src/istereo.c	Wed Sep 07 08:25:56 2011 +0300
     2.2 +++ b/src/istereo.c	Wed Sep 07 08:30:24 2011 +0300
     2.3 @@ -83,6 +83,8 @@
     2.4  	glBindAttribLocation(prog, 1, "attr_color");
     2.5  	glLinkProgram(prog);
     2.6  
     2.7 +	assert(prog);
     2.8 +
     2.9  	return prog;
    2.10  }
    2.11