From aadf0abbf2dae7050ee3314cd5d99578839644c1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 12 Jun 2013 23:56:13 +0200 Subject: gl_video: remove redundant condition --- video/out/gl_video.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/video/out/gl_video.c b/video/out/gl_video.c index 7c6ecd426e..a2c032de6b 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -1408,11 +1408,6 @@ static bool get_image(struct gl_video *p, struct mp_image *mpi) if (!p->opts.pbo) return false; - // We don't support alpha planes. (Disabling PBOs with normal draw calls is - // an undesired, but harmless side-effect.) - if (mpi->num_planes != p->plane_count) - return false; - struct video_image *vimg = &p->image; for (int n = 0; n < p->plane_count; n++) { @@ -1441,7 +1436,7 @@ void gl_video_upload_image(struct gl_video *p, struct mp_image *mpi) GL *gl = p->gl; int n; - assert(mpi->num_planes >= p->plane_count); + assert(mpi->num_planes == p->plane_count); struct video_image *vimg = &p->image; -- cgit v1.2.3