From ec4bbbb69b83b781972ff4e81a8ea44d62b91c56 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Sun, 21 Dec 2014 03:22:36 +1100 Subject: vo_opengl: silence an INVALID_ENUM error with GLES2 Signed-off-by: wm4 --- video/out/gl_video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'video/out') diff --git a/video/out/gl_video.c b/video/out/gl_video.c index 4fc9e3e28b..970681b38f 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -1930,7 +1930,8 @@ void gl_video_upload_image(struct gl_video *p, struct mp_image *mpi) plane_ptr, mpi2.stride[n], 0, 0, plane->w, plane->h, 0); } gl->ActiveTexture(GL_TEXTURE0); - gl->BindBuffer(GL_PIXEL_UNPACK_BUFFER, 0); + if (pbo) + gl->BindBuffer(GL_PIXEL_UNPACK_BUFFER, 0); p->have_image = true; talloc_free(mpi); -- cgit v1.2.3