mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 23:00:41 +00:00
proper init of NSApp
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15737 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e02a9c039c
commit
643db0cf94
@ -240,8 +240,8 @@ static uint32_t preinit(const char *arg)
|
||||
}
|
||||
}
|
||||
|
||||
NSApplicationLoad();
|
||||
autoreleasepool = [[NSAutoreleasePool alloc] init];
|
||||
[NSApplication sharedApplication];
|
||||
|
||||
mpGLView = [[MPlayerOpenGLView alloc] initWithFrame:NSMakeRect(0, 0, 0, 0) pixelFormat:[MPlayerOpenGLView defaultPixelFormat]];
|
||||
[mpGLView autorelease];
|
||||
|
Loading…
Reference in New Issue
Block a user