From 923e098f5f830c30b93d6f85d4f812201bdcb206 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 17 Jul 2014 17:10:39 +0100 Subject: sna: Fix compilation with older Xorg sna_display.c: In function 'sna_crtc_disable_shadow': sna_display.c:1375:39: error: dereferencing pointer to incomplete type DamageUnregister(&crtc->slave_damage->drawable, crtc->slave_damage); Signed-off-by: Chris Wilson --- src/sna/sna_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index efb4197a..fbd7cffc 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -1372,7 +1372,7 @@ static void sna_crtc_disable_shadow(struct sna *sna, struct sna_crtc *crtc) if (crtc->slave_damage) { assert(crtc->slave_pixmap); - DamageUnregister(&crtc->slave_scanout->drawable, crtc->slave_damage); + DamageUnregister(&crtc->slave_pixmap->drawable, crtc->slave_damage); DamageDestroy(crtc->slave_damage); crtc->slave_damage = NULL; } -- cgit v1.2.3