diff options
-rw-r--r-- | video/out/gl_video.c | 7 |
1 files changed, 1 insertions, 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; |