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:
Michel Dänzer 2007-10-18 17:44:14 +02:00 committed by Daniel Stone
parent 75b9dc907b
commit 3e987ea670

View File

@ -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,