From: Michel Dänzer <[email protected]>

These pixmaps will be pinned to system or offscreen memory, so there's no need
to track damage.

Signed-off-by: Michel Dänzer <[email protected]>
---
 exa/exa.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/exa/exa.c b/exa/exa.c
index b0c96fb..61c3245 100644
--- a/exa/exa.c
+++ b/exa/exa.c
@@ -431,6 +431,12 @@ exaModifyPixmapHeader(PixmapPtr pPixmap, int width, int 
height, int depth,
             exaSetAccelBlock(pExaScr, pExaPixmap,
                              width, height, bitsPerPixel);
         }
+
+       if (pExaPixmap->pDamage) {
+           DamageUnregister(&pPixmap->drawable, pExaPixmap->pDamage);
+           DamageDestroy(pExaPixmap->pDamage);
+           pExaPixmap->pDamage = NULL;
+       }
     }
 
 
-- 
1.6.2.rc1

_______________________________________________
xorg-devel mailing list
[email protected]
http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to