sna/dri: Add an explanatory assertion

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-07-26 15:21:59 +01:00
parent c621183466
commit 0938b3df8c
1 changed files with 1 additions and 0 deletions

View File

@ -397,6 +397,7 @@ static void damage(PixmapPtr pixmap, RegionPtr region)
struct sna_pixmap *priv;
priv = sna_pixmap(pixmap);
assert(priv != NULL);
if (DAMAGE_IS_ALL(priv->gpu_damage))
return;