sna: Assert that we do setup the gc->pCompositeClip upon ValidateGC
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 9 Nov 2013 11:15:39 +0000 (11:15 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 10 Nov 2013 10:35:27 +0000 (10:35 +0000)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_accel.c

index bf5f16a..b1dc2f7 100644 (file)
@@ -15639,6 +15639,8 @@ sna_validate_gc(GCPtr gc, unsigned long changes, DrawablePtr drawable)
                     gc->pCompositeClip->extents.y2));
        }
 
+       assert(gc->pCompositeClip);
+
        sna_gc(gc)->changes |= changes;
 }