diff options
-rw-r--r-- | src/sna/sna_video_overlay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_video_overlay.c b/src/sna/sna_video_overlay.c index c39bbfc8..945818a5 100644 --- a/src/sna/sna_video_overlay.c +++ b/src/sna/sna_video_overlay.c @@ -114,7 +114,7 @@ static Bool sna_has_overlay(struct sna *sna) gp.param = I915_PARAM_HAS_OVERLAY; gp.value = &has_overlay; ret = drmIoctl(sna->kgem.fd, DRM_IOCTL_I915_GETPARAM, &gp); - return ret > 0 && has_overlay; + return ret == 0 && has_overlay; } static Bool sna_video_overlay_update_attrs(struct sna *sna, |