summaryrefslogtreecommitdiff
path: root/src/i830_driver.c
diff options
context:
space:
mode:
authorAlbert Damen <albrt@gmx.net>2009-10-07 21:55:42 +0200
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-10-13 10:51:24 -0700
commitfcc2ee48b866b81c79315ff10189b56fc201539d (patch)
tree40ed44625729bdb46dd906242a51d014a1b34eec /src/i830_driver.c
parent8a77877f9c2c6a8a1308bc1a3be9e7ad88bc7f49 (diff)
Drop frontbuffer from crtc in I830CloseScreen
By dropping the frontbuffer from the crtc, the new frontbuffer can be properly added to the crtc when the xserver is reset. Signed-off-by: Albert Damen <albrt@gmx.net>
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r--src/i830_driver.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index 47bc4dff..8b5e946f 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -1519,6 +1519,7 @@ static Bool I830CloseScreen(int scrnIndex, ScreenPtr screen)
}
if (intel->front_buffer) {
i830_set_pixmap_bo(screen->GetScreenPixmap(screen), NULL);
+ drmmode_closefb(scrn);
i830_free_memory(scrn, intel->front_buffer);
intel->front_buffer = NULL;
}