changeset 15610:9a4d9b7c8dd6

Sync swap with VBL.
author nplourde
date Thu, 02 Jun 2005 12:03:26 +0000
parents 0d66e391796b
children 2f77a2da1d82
files libvo/vo_macosx.m
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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];