mirror of
https://github.com/mpv-player/mpv
synced 2025-04-11 04:01:31 +00:00
Split flip_page function
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26872 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6701227e16
commit
e1f2c361a3
@ -589,9 +589,7 @@ static void draw_osd(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void do_render(void) {
|
||||||
flip_page(void)
|
|
||||||
{
|
|
||||||
// glEnable(GL_TEXTURE_2D);
|
// glEnable(GL_TEXTURE_2D);
|
||||||
// glBindTexture(GL_TEXTURE_2D, texture_id);
|
// glBindTexture(GL_TEXTURE_2D, texture_id);
|
||||||
|
|
||||||
@ -635,7 +633,10 @@ flip_page(void)
|
|||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
BindTexture(gl_target, 0);
|
BindTexture(gl_target, 0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void flip_page(void) {
|
||||||
|
do_render();
|
||||||
if (use_glFinish)
|
if (use_glFinish)
|
||||||
glFinish();
|
glFinish();
|
||||||
if (vo_doublebuffering)
|
if (vo_doublebuffering)
|
||||||
|
Loading…
Reference in New Issue
Block a user