diff --git a/PanoPainter/GameViewController.m b/PanoPainter/GameViewController.m index f43ba23..0278b5c 100644 --- a/PanoPainter/GameViewController.m +++ b/PanoPainter/GameViewController.m @@ -35,7 +35,7 @@ NSThread* lock_thread; lock_count++; [EAGLContext setCurrentContext:self.context]; GLKView* view = (GLKView*)self.view; - //[view bindDrawable]; + [view bindDrawable]; } - (void)async_unlock { @@ -45,7 +45,7 @@ NSThread* lock_thread; } - (void)async_swap { - [[EAGLContext currentContext] presentRenderbuffer:GL_RENDERBUFFER]; + [self.context presentRenderbuffer:GL_RENDERBUFFER]; } - (void)insertText:(NSString *)text @@ -317,6 +317,7 @@ NSThread* lock_thread; [gl_lock lock]; if (!(App::I.redraw || App::I.animate)) { + [self.context presentRenderbuffer:GL_FRAMEBUFFER]; [gl_lock unlock]; return; } @@ -324,7 +325,7 @@ NSThread* lock_thread; [view bindDrawable]; App::I.clear(); App::I.update(0); - //[self.context presentRenderbuffer:GL_FRAMEBUFFER]; + [self.context presentRenderbuffer:GL_FRAMEBUFFER]; [gl_lock unlock]; } diff --git a/data/layout.xml b/data/layout.xml index a4ba7f5..3eba331 100644 --- a/data/layout.xml +++ b/data/layout.xml @@ -541,7 +541,9 @@