mirror of
https://github.com/mpv-player/mpv
synced 2025-04-28 14:20:05 +00:00
gl_video: remove redundant condition
This commit is contained in:
parent
c7742e24f6
commit
aadf0abbf2
@ -1408,11 +1408,6 @@ static bool get_image(struct gl_video *p, struct mp_image *mpi)
|
|||||||
if (!p->opts.pbo)
|
if (!p->opts.pbo)
|
||||||
return false;
|
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;
|
struct video_image *vimg = &p->image;
|
||||||
|
|
||||||
for (int n = 0; n < p->plane_count; n++) {
|
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;
|
GL *gl = p->gl;
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
assert(mpi->num_planes >= p->plane_count);
|
assert(mpi->num_planes == p->plane_count);
|
||||||
|
|
||||||
struct video_image *vimg = &p->image;
|
struct video_image *vimg = &p->image;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user