diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-07-17 17:10:39 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-07-17 17:10:39 +0100 |
commit | 923e098f5f830c30b93d6f85d4f812201bdcb206 (patch) | |
tree | 9957d1193f03c8042bac8a6de5ad226e2c083916 | |
parent | 7026ffe56005bbc36dc37cafc7ebb2a7f09fefdd (diff) |
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 <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |