mirror of https://github.com/mpv-player/mpv
crash on autorelease, do not add to pool
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15855 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
0bbc7905c9
commit
7d73ce2371
|
@ -281,7 +281,6 @@ static uint32_t control(uint32_t request, void *data, ...)
|
|||
styleMask:NSTitledWindowMask|NSTexturedBackgroundWindowMask|NSClosableWindowMask|NSMiniaturizableWindowMask|NSResizableWindowMask
|
||||
backing:NSBackingStoreBuffered defer:NO];
|
||||
|
||||
[window autorelease];
|
||||
[window setDelegate:mpGLView];
|
||||
[window setContentView:mpGLView];
|
||||
[window setInitialFirstResponder:mpGLView];
|
||||
|
@ -308,7 +307,6 @@ static uint32_t control(uint32_t request, void *data, ...)
|
|||
|
||||
//create OpenGL Context
|
||||
glContext = [[NSOpenGLContext alloc] initWithFormat:[NSOpenGLView defaultPixelFormat] shareContext:nil];
|
||||
[glContext autorelease];
|
||||
|
||||
[self setOpenGLContext:glContext];
|
||||
[glContext setValues:&swapInterval forParameter:NSOpenGLCPSwapInterval];
|
||||
|
|
Loading…
Reference in New Issue