Bug #4689: Treat DirectColor as TrueColor in Render. It fixes some crashes

with xcompmgr when using apps that use a DirectColor visual for their
    windows
This commit is contained in:
Benjamin Herrenschmidt 2005-10-06 08:08:04 +00:00
parent 9000c0321b
commit 5f30a7b102

View File

@ -543,9 +543,9 @@ PictureMatchVisual (ScreenPtr pScreen, int depth, VisualPtr pVisual)
type = PictTypeIndexed;
break;
case TrueColor:
case DirectColor:
type = PictTypeDirect;
break;
case DirectColor:
default:
return 0;
}