diff options
author | ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-23 04:49:10 +0000 |
---|---|---|
committer | ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-23 04:49:10 +0000 |
commit | 4f1228ed5eeab603ca1f8cd2d1d3e93ac921b5ec (patch) | |
tree | b3c7441b74bb821b20439fd8a24e894d9bfbe405 /libvo | |
parent | a6f2e317f24e9a8fd545a403aa91f15c0d98c9d6 (diff) |
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
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_macosx.m | 8 |
1 files changed, 3 insertions, 5 deletions
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; } |