mirror of https://github.com/mpv-player/mpv
show window only after texture creation (look better).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15658 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ac692cffe0
commit
3d7173df87
|
@ -303,8 +303,6 @@ static uint32_t control(uint32_t request, void *data, ...)
|
|||
[window setAcceptsMouseMovedEvents:YES];
|
||||
[window setTitle:@"MPlayer - The Movie Player"];
|
||||
[window center];
|
||||
[window makeKeyAndOrderFront:self];
|
||||
|
||||
|
||||
[self setOpenGLContext:glContext];
|
||||
[glContext setValues:&swapInterval forParameter:NSOpenGLCPSwapInterval];
|
||||
|
@ -323,6 +321,9 @@ static uint32_t control(uint32_t request, void *data, ...)
|
|||
if(error != kCVReturnSuccess)
|
||||
mp_msg(MSGT_VO, MSGL_ERR,"Failed to create OpenGL texture(%d)\n", error);
|
||||
|
||||
//show window
|
||||
[window makeKeyAndOrderFront:self];
|
||||
|
||||
isFullscreen = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue