diff options
author | Keith Packard <keithp@keithp.com> | 2011-02-23 11:17:33 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-02-23 11:17:33 -0800 |
commit | 793a242c89fccdbf1a2557ba33da1da2cb4ff8c4 (patch) | |
tree | b7bd1d600b7a9b041f72da672d51672724d2e281 /hw/xfree86/modes | |
parent | 7b7cd3f121b3904ad851155f853ce87a0e00d002 (diff) |
Revert "DIX is responsible for ref counting scanout pixmaps."
This reverts commit 96b4d4787bf82edd9d06eb9a6e94bc45412c7df2.
Diffstat (limited to 'hw/xfree86/modes')
-rw-r--r-- | hw/xfree86/modes/xf86Crtc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c index b5e9dc26f..94f2c506e 100644 --- a/hw/xfree86/modes/xf86Crtc.c +++ b/hw/xfree86/modes/xf86Crtc.c @@ -414,6 +414,10 @@ done: crtc->active = TRUE; if (scrn->pScreen) xf86CrtcSetScreenSubpixelOrder (scrn->pScreen); + if (crtc->scanoutPixmap) + ++crtc->scanoutPixmap->refcnt; + if (saved_scanout_pixmap) + (*scrn->pScreen->DestroyPixmap)(saved_scanout_pixmap); if (scrn->ModeSet) scrn->ModeSet(scrn); } else { |