Adam Jackson <[email protected]> writes: > Just throw BadPicture instead of crashing. It's not currently a > meaningful thing to do anyway, RenderSetPictureRectangles would error if > you tried (which this patch changes to BadPicture as well for > consistency). The problem with trying to do it is if the clip is > specified as a pixmap then we try to convert it to a region, and > ->BitmapToRegion requires a ScreenPtr, and source-only pictures don't > have one.
And source-only pictures can't get a CT_PIXMAP set -- CPClipMask returns BadDrawable when you try to do that on a picture without a drawable. If you saw this in real life, then you'd have found a bug in the server elsewhere and we'll want to track that down... If it were possible to set a bitmap clip on a source-only picture, then a trivial fix would be to pull the screen out of the bitmap. In any case, Nak'd-by: Keith Packard <[email protected]> -- [email protected]
pgptBw0lXYBKI.pgp
Description: PGP signature
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
