summaryrefslogtreecommitdiffstats
path: root/libvo/vo_gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_gl.c')
-rw-r--r--libvo/vo_gl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index d4a9d15093..79353b5c36 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -764,6 +764,9 @@ static uint32_t get_image(mp_image_t *mpi) {
return VO_FALSE;
}
if (mpi->flags & MP_IMGFLAG_READABLE) return VO_FALSE;
+ if (mpi->type != MP_IMGTYPE_STATIC && mpi->type != MP_IMGTYPE_TEMP &&
+ (mpi->type != MP_IMGTYPE_NUMBERED || mpi->number))
+ return VO_FALSE;
if (mesa_buffer) mpi->width = texture_width;
else if (ati_hack) {
mpi->width = texture_width;
@@ -1204,6 +1207,8 @@ static int control(uint32_t request, void *data)
if (vo_doublebuffering)
do_render();
draw_osd();
+ if (vo_doublebuffering)
+ do_render_osd(2);
flip_page();
return VO_TRUE;
}