# HG changeset patch # User nplourde # Date 1117713806 0 # Node ID 9a4d9b7c8dd631bc1816d2cfcfb7a40d9cfcf8b5 # Parent 0d66e391796b18313e8065f64877c3585c1dd8b8 Sync swap with VBL. diff -r 0d66e391796b -r 9a4d9b7c8dd6 libvo/vo_macosx.m --- 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];