mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-27 02:20:07 +01:00
Don't start pixmaps differing from root format in off-screen memory
This commit is contained in:
parent
f2f8347001
commit
a7d61f290c
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue