From 4f1228ed5eeab603ca1f8cd2d1d3e93ac921b5ec Mon Sep 17 00:00:00 2001 From: ulion Date: Fri, 23 Nov 2007 04:49:10 +0000 Subject: Move the setCurrentTexture call into flip_page(), fix osd flicker problem. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25142 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_macosx.m | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'libvo/vo_macosx.m') diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m index cb505c25fa..7cf846b7c5 100644 --- a/libvo/vo_macosx.m +++ b/libvo/vo_macosx.m @@ -180,13 +180,14 @@ static void flip_page(void) { 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 @@ static int draw_frame(uint8_t *src[]) break; } - if(!shared_buffer) - [mpGLView setCurrentTexture]; - return 0; } -- cgit v1.2.3