delay OpenGLContext makeCurrent

pull/413/head
Li Linfeng 2019-09-22 11:34:48 +08:00
parent 107cc84e8b
commit 6b1704a71d
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,6 @@ NSString* fatalErrorMessage;
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
[[glView openGLContext] makeCurrentContext];
#ifdef DEBUG
NSDate *t = [NSDate date];
#endif
@ -294,6 +293,7 @@ NSString* fatalErrorMessage;
- (void)finishInitialization
{
[[glView openGLContext] makeCurrentContext];
[glView setAASamples: [appCore aaSamples]];
[appCore initRenderer];