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:
parent
9000c0321b
commit
5f30a7b102
|
@ -543,9 +543,9 @@ PictureMatchVisual (ScreenPtr pScreen, int depth, VisualPtr pVisual)
|
||||||
type = PictTypeIndexed;
|
type = PictTypeIndexed;
|
||||||
break;
|
break;
|
||||||
case TrueColor:
|
case TrueColor:
|
||||||
|
case DirectColor:
|
||||||
type = PictTypeDirect;
|
type = PictTypeDirect;
|
||||||
break;
|
break;
|
||||||
case DirectColor:
|
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue