Mercurial > mplayer.hg
diff libvo/vo_macosx.m @ 15610:9a4d9b7c8dd6
Sync swap with VBL.
author | nplourde |
---|---|
date | Thu, 02 Jun 2005 12:03:26 +0000 |
parents | 5db3dd72c876 |
children | 2f77a2da1d82 |
line wrap: on
line diff
--- a/libvo/vo_macosx.m Wed Jun 01 21:55:28 2005 +0000 +++ b/libvo/vo_macosx.m Thu Jun 02 12:03:26 2005 +0000 @@ -298,6 +298,7 @@ @implementation CustomOpenGLView - (void) initOpenGLView { + long swapInterval = 1; NSRect frame = [self frame]; CVReturn error = kCVReturnSuccess; @@ -323,6 +324,7 @@ [window makeKeyAndOrderFront:self]; [self setOpenGLContext:glContext]; + [[self openGLContext] setValues:&swapInterval forParameter:NSOpenGLCPSwapInterval]; [glContext setView:self]; [glContext makeCurrentContext];