nil out sharedViewController in case bindDefaultFBO is called again

This commit is contained in:
Kentucky Compass 2017-12-31 19:53:59 -08:00
parent 152dc2192f
commit 67c6ecdece

View File

@ -221,6 +221,8 @@ static GraphicsContext *graphicsContext;
- (void)dealloc
{
sharedViewController = nil;
if ([EAGLContext currentContext] == self.context) {
[EAGLContext setCurrentContext:nil];
}