diff options
author | Søren Sandmann <ssp@redhat.com> | 2012-07-27 14:08:44 -0400 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-08-23 17:34:32 -0400 |
commit | 8081f21a6d9057c81d835511101ecc6664668861 (patch) | |
tree | 3f341d27c1dbfaf0f0a62e2d15aec1e00b8f812a | |
parent | fab769258da86fedd7c2b090076ef97688aa0f9d (diff) |
NULL pictures can be accelerated
-rw-r--r-- | src/qxl_driver.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qxl_driver.c b/src/qxl_driver.c index 9a995f6..0474ffc 100644 --- a/src/qxl_driver.c +++ b/src/qxl_driver.c @@ -1314,6 +1314,9 @@ qxl_done_copy (PixmapPtr dest) static Bool can_accelerate_picture (PicturePtr pict) { + if (!pict) + return TRUE; + if (pict->format != PICT_a8r8g8b8 && pict->format != PICT_x8r8g8b8 && pict->format != PICT_a8) |