diff options
author | Niklas Haas <git@haasn.xyz> | 2017-07-27 00:38:54 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.xyz> | 2017-07-27 00:38:54 +0200 |
commit | e1cc43182c029fa4f90d4b5fe620082b5eba6fac (patch) | |
tree | 87a71ceec04435e86f77a90840c852990c40b582 /video | |
parent | 81851febc4766e053cc17134c779959f5942025a (diff) |
vo_opengl: fix mpgl_caps bit check
As pointed out by @bjin, this would match if _any_ of the reqs are set.
Need to test for explicit equality.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/opengl/video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index 130d049136..f9bcc60c25 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -1713,7 +1713,7 @@ static void pass_dispatch_sample_polar(struct gl_video *p, struct scaler *scaler GL *gl = p->gl; GLenum reqs = MPGL_CAP_COMPUTE_SHADER | MPGL_CAP_NESTED_ARRAY; - if (!(gl->mpgl_caps & reqs)) + if ((gl->mpgl_caps & reqs) != reqs) goto fallback; int bound = ceil(scaler->kernel->radius_cutoff); |