diff options
author | 2005-06-02 12:03:26 +0000 | |
---|---|---|
committer | 2005-06-02 12:03:26 +0000 | |
commit | 994a2b2479f1a1b89ca901559ccd28e8f4813953 (patch) | |
tree | a1053027053fb2fd29d43eb43145dac45bfe4740 /libvo | |
parent | 1adaa6b62f48a0c0c6cd37c23cf7ca6887718d6c (diff) |
Sync swap with VBL.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15611 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_macosx.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m index 28513f7f9f..854cb923d1 100644 --- a/libvo/vo_macosx.m +++ b/libvo/vo_macosx.m @@ -298,6 +298,7 @@ static uint32_t control(uint32_t request, void *data, ...) @implementation CustomOpenGLView - (void) initOpenGLView { + long swapInterval = 1; NSRect frame = [self frame]; CVReturn error = kCVReturnSuccess; @@ -323,6 +324,7 @@ static uint32_t control(uint32_t request, void *data, ...) [window makeKeyAndOrderFront:self]; [self setOpenGLContext:glContext]; + [[self openGLContext] setValues:&swapInterval forParameter:NSOpenGLCPSwapInterval]; [glContext setView:self]; [glContext makeCurrentContext]; |