vo_opengl: silence an INVALID_ENUM error with GLES2

Signed-off-by: wm4 <wm4@nowhere>
This commit is contained in:
James Ross-Gowan 2014-12-21 03:22:36 +11:00 committed by wm4
parent f6dac5d884
commit ec4bbbb69b
1 changed files with 2 additions and 1 deletions

View File

@ -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);