summaryrefslogtreecommitdiff
path: root/src/sna/sna_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sna/sna_driver.c')
-rw-r--r--src/sna/sna_driver.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index 7b3cfcee..150e973e 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -784,9 +784,6 @@ static Bool sna_close_screen(int scrnIndex, ScreenPtr screen)
sna_mode_remove_fb(sna);
if (sna->front) {
- struct kgem_bo *bo = sna_pixmap_get_bo(sna->front);
- if (bo)
- kgem_bo_clear_scanout(&sna->kgem, bo); /* valgrind */
screen->DestroyPixmap(sna->front);
sna->front = NULL;
}