Don't start pixmaps differing from root format in off-screen memory

This commit is contained in:
Keith Packard 2003-10-22 07:08:02 +00:00
parent f2f8347001
commit a7d61f290c

View file

@ -278,7 +278,8 @@ kaaCreatePixmap(ScreenPtr pScreen, int w, int h, int depth)
pKaaPixmap->score = 0;
pKaaPixmap->area = NULL;
if ((pPixmap->devKind * h) >= MIN_OFFPIX_SIZE)
if (depth == pScreen->rootDepth &&
(pPixmap->devKind * h) >= MIN_OFFPIX_SIZE)
kaaPixmapAllocArea (pPixmap);
return pPixmap;
}