diff options
Diffstat (limited to 'glamor/glamor.c')
-rw-r--r-- | glamor/glamor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glamor/glamor.c b/glamor/glamor.c index e2c74d17a..54ca0db35 100644 --- a/glamor/glamor.c +++ b/glamor/glamor.c @@ -865,7 +865,7 @@ glamor_fd_from_pixmap(ScreenPtr screen, &modifier); /* Pixmaps with multi-planes/modifier are not supported in this interface */ - if (ret > 1) { + if (ret != 1 || offsets[0] != 0) { while (ret > 0) close(fds[--ret]); return -1; |