sna/dri: Add an explanatory assertion
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
c621183466
commit
0938b3df8c
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue