diff libvo/vo_macosx.m @ 25114:bed4188998ca

Move the setCurrentTexture call into flip_page(), fix osd flicker problem.
author ulion
date Fri, 23 Nov 2007 04:49:10 +0000
parents 3efbdaab822f
children 9b4ca4dc1294
line wrap: on
line diff
--- a/libvo/vo_macosx.m	Thu Nov 22 23:08:35 2007 +0000
+++ b/libvo/vo_macosx.m	Fri Nov 23 04:49:10 2007 +0000
@@ -180,13 +180,14 @@
 {
 	if(shared_buffer)
 		[mplayerosxProxy render];
-	else
+	else {
+		[mpGLView setCurrentTexture];
 		[mpGLView render];
+	}
 }
 
 static int draw_slice(uint8_t *src[], int stride[], int w,int h,int x,int y)
 {
-	[mpGLView setCurrentTexture];
 	return 0;
 }
 
@@ -205,9 +206,6 @@
 			break;
 	}
 	
-	if(!shared_buffer)
-		[mpGLView setCurrentTexture];
-	
 	return 0;
 }