summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--randr/rrcrtc.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c
index 6e459edf3..8d9c5bb05 100644
--- a/randr/rrcrtc.c
+++ b/randr/rrcrtc.c
@@ -379,11 +379,8 @@ void
RRCrtcDetachScanoutPixmap(RRCrtcPtr crtc)
{
ScreenPtr master = crtc->pScreen->current_master;
- PixmapPtr mscreenpix;
rrScrPriv(crtc->pScreen);
- mscreenpix = master->GetScreenPixmap(master);
-
pScrPriv->rrCrtcSetScanoutPixmap(crtc, NULL);
if (crtc->scanout_pixmap) {
rrDestroySharedPixmap(crtc, crtc->scanout_pixmap);
@@ -429,8 +426,6 @@ rrSetupPixmapSharing(RRCrtcPtr crtc, int width, int height,
ScreenPtr master = crtc->pScreen->current_master;
int depth;
PixmapPtr mscreenpix;
- PixmapPtr protopix = master->GetScreenPixmap(master);
- rrScrPriv(crtc->pScreen);
PixmapPtr spix;
/* create a pixmap on the master screen,
@@ -442,7 +437,7 @@ rrSetupPixmapSharing(RRCrtcPtr crtc, int width, int height,
*/
mscreenpix = master->GetScreenPixmap(master);
- depth = protopix->drawable.depth;
+ depth = mscreenpix->drawable.depth;
if (crtc->scanout_pixmap)
RRCrtcDetachScanoutPixmap(crtc);