From 73e2383b7350723256894c5076d0c731aec5cd1f Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 20 Jun 2014 13:31:20 -0400 Subject: dix: Always store GC client clip as a region (v2) Again, this changes FixesCreateRegionFromGC to throw BadMatch when fed a GC with no client clip. v2: Fix Xnest and some variable names (Keith) Reviewed-by: Keith Packard Signed-off-by: Adam Jackson --- hw/xfree86/common/xf86xv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/xfree86/common') diff --git a/hw/xfree86/common/xf86xv.c b/hw/xfree86/common/xf86xv.c index 5ef5de19c..b974cd212 100644 --- a/hw/xfree86/common/xf86xv.c +++ b/hw/xfree86/common/xf86xv.c @@ -599,7 +599,7 @@ static void xf86XVCopyClip(XvPortRecPrivatePtr portPriv, GCPtr pGC) { /* copy the new clip if it exists */ - if ((pGC->clientClipType == CT_REGION) && pGC->clientClip) { + if (pGC->clientClip) { if (!portPriv->clientClip) portPriv->clientClip = RegionCreate(NullBox, 1); /* Note: this is in window coordinates */ -- cgit v1.2.3