[MPlayer-cvslog] CVS: main/libvo vo_macosx.m,1.9,1.10

Nicolas Plourde CVS syncmail at mplayerhq.hu
Thu Jun 2 14:03:28 CEST 2005


CVS change done by Nicolas Plourde CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv3510/libvo

Modified Files:
	vo_macosx.m 
Log Message:
Sync swap with VBL.


Index: vo_macosx.m
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_macosx.m,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- vo_macosx.m	26 May 2005 16:33:28 -0000	1.9
+++ vo_macosx.m	2 Jun 2005 12:03:26 -0000	1.10
@@ -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];	
 	




More information about the MPlayer-cvslog mailing list