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
This commit is contained in:
ulion 2007-11-23 04:49:10 +00:00
parent a6f2e317f2
commit 4f1228ed5e
1 changed files with 3 additions and 5 deletions

View File

@ -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;
}