diff options
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_gl3.c | 2 | ||||
-rw-r--r-- | libvo/vo_vdpau.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libvo/vo_gl3.c b/libvo/vo_gl3.c index 2af63700b4..03d04b7038 100644 --- a/libvo/vo_gl3.c +++ b/libvo/vo_gl3.c @@ -1419,7 +1419,7 @@ static void gen_eosd(struct gl_priv *p, struct osd_render *osd, osd->num_vertices = 0; - if (imgs->format == SUBBITMAP_EMPTY) + if (imgs->format == SUBBITMAP_EMPTY || imgs->num_parts == 0) return; bool need_upload = imgs->bitmap_id != osd->bitmap_id; diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c index 41feaca7b6..14b9d0df63 100644 --- a/libvo/vo_vdpau.c +++ b/libvo/vo_vdpau.c @@ -997,7 +997,7 @@ static void generate_eosd(struct vo *vo, mp_eosd_images_t *imgs) sfc->render_count = 0; - if (imgs->format == SUBBITMAP_EMPTY) + if (imgs->format == SUBBITMAP_EMPTY || imgs->num_parts == 0) return; if (imgs->bitmap_id == sfc->bitmap_id) |