EXA: Don't attempt to move in pixmaps that can't be accelerated.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=12815 .
(Related to commit 5d74416740
on master.)
This commit is contained in:
parent
75b9dc907b
commit
3e987ea670
|
@ -319,6 +319,10 @@ exaMoveInPixmap (PixmapPtr pPixmap)
|
|||
if (pPixmap->drawable.bitsPerPixel < 8)
|
||||
return;
|
||||
|
||||
if (pPixmap->drawable.width > pExaScr->info->maxX ||
|
||||
pPixmap->drawable.height > pExaScr->info->maxY)
|
||||
return;
|
||||
|
||||
if (pExaPixmap->area == NULL) {
|
||||
pExaPixmap->area =
|
||||
exaOffscreenAlloc (pScreen, pExaPixmap->fb_size,
|
||||
|
|
Loading…
Reference in New Issue
Block a user