diff options
author | wm4 <wm4@nowhere> | 2013-06-12 23:56:13 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-06-13 00:58:58 +0200 |
commit | aadf0abbf2dae7050ee3314cd5d99578839644c1 (patch) | |
tree | 376b110f660b27f6a7659dd2d285b1f6bbc1e273 /video | |
parent | c7742e24f677602f373c2279a484b358515ced6e (diff) | |
download | mpv-aadf0abbf2dae7050ee3314cd5d99578839644c1.tar.bz2 mpv-aadf0abbf2dae7050ee3314cd5d99578839644c1.tar.xz |
gl_video: remove redundant condition
Diffstat (limited to 'video')
-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; |