summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-07-27 00:38:54 +0200
committerNiklas Haas <git@haasn.xyz>2017-07-27 00:38:54 +0200
commite1cc43182c029fa4f90d4b5fe620082b5eba6fac (patch)
tree87a71ceec04435e86f77a90840c852990c40b582
parent81851febc4766e053cc17134c779959f5942025a (diff)
downloadmpv-e1cc43182c029fa4f90d4b5fe620082b5eba6fac.tar.bz2
mpv-e1cc43182c029fa4f90d4b5fe620082b5eba6fac.tar.xz
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.
-rw-r--r--video/out/opengl/video.c2
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);