mirror of https://github.com/mpv-player/mpv
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:
parent
a6f2e317f2
commit
4f1228ed5e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue