diff options
Diffstat (limited to 'src/sna/sna_dri.c')
-rw-r--r-- | src/sna/sna_dri.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_dri.c b/src/sna/sna_dri.c index 9a703c20..3beaee19 100644 --- a/src/sna/sna_dri.c +++ b/src/sna/sna_dri.c @@ -317,6 +317,9 @@ static void damage(PixmapPtr pixmap, RegionPtr region) struct sna_pixmap *priv; priv = sna_pixmap(pixmap); + if (DAMAGE_IS_ALL(priv->gpu_damage)) + return; + if (region == NULL) { damage_all: sna_damage_all(&priv->gpu_damage, |