Permalink
Browse files

nil out sharedViewController in case bindDefaultFBO is called again

  • Loading branch information...
KentuckyCompass committed Jan 1, 2018
1 parent 152dc21 commit 67c6ecdecefe7042751e9e208ced73625e24b089
Showing with 2 additions and 0 deletions.
  1. +2 −0 ios/ViewController.mm
View
@@ -221,6 +221,8 @@ - (void)didReceiveMemoryWarning
- (void)dealloc
{
sharedViewController = nil;
if ([EAGLContext currentContext] == self.context) {
[EAGLContext setCurrentContext:nil];
}

0 comments on commit 67c6ecd

Please sign in to comment.