summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvo/vo_opengl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/vo_opengl.c b/libvo/vo_opengl.c
index 5c3735eebc..a9bd5f67e8 100644
--- a/libvo/vo_opengl.c
+++ b/libvo/vo_opengl.c
@@ -1534,7 +1534,7 @@ static void gen_eosd(struct gl_priv *p, mp_eosd_images_t *imgs)
* sizeof(struct vertex)
* VERTICES_PER_QUAD);
- if (need_upload && p->use_pbo) {
+ if (need_upload && p->use_pbo && p->eosd->targets_count) {
gl->BindBuffer(GL_PIXEL_UNPACK_BUFFER, p->eosd_buffer);
char *data = gl->MapBuffer(GL_PIXEL_UNPACK_BUFFER, GL_WRITE_ONLY);
if (!data) {