From e1cc43182c029fa4f90d4b5fe620082b5eba6fac Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Thu, 27 Jul 2017 00:38:54 +0200 Subject: 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. --- video/out/opengl/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') 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); -- cgit v1.2.3