add context set before init for lua
parent
f6c00a958a
commit
76132b1808
|
@ -190,6 +190,7 @@ NSString* fatalErrorMessage;
|
||||||
{
|
{
|
||||||
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||||||
|
|
||||||
|
[[glView openGLContext] makeCurrentContext];
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
NSDate *t = [NSDate date];
|
NSDate *t = [NSDate date];
|
||||||
#endif
|
#endif
|
||||||
|
@ -209,6 +210,7 @@ NSString* fatalErrorMessage;
|
||||||
[startupCondition lock];
|
[startupCondition lock];
|
||||||
[startupCondition unlockWithCondition:1];
|
[startupCondition unlockWithCondition:1];
|
||||||
}
|
}
|
||||||
|
[NSOpenGLContext clearCurrentContext];
|
||||||
|
|
||||||
[pool release];
|
[pool release];
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in New Issue