summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/intel_driver.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/intel_driver.c b/src/intel_driver.c
index 218b583d..1b2c6167 100644
--- a/src/intel_driver.c
+++ b/src/intel_driver.c
@@ -1136,10 +1136,6 @@ static Bool I830CloseScreen(CLOSE_SCREEN_ARGS_DECL)
I830UeventFini(scrn);
#endif
- if (scrn->vtSema == TRUE) {
- I830LeaveVT(VT_FUNC_ARGS(0));
- }
-
DeleteCallback(&FlushCallback, intel_flush_callback, scrn);
intel_glamor_close_screen(screen);
@@ -1169,6 +1165,10 @@ static Bool I830CloseScreen(CLOSE_SCREEN_ARGS_DECL)
intel->front_buffer = NULL;
}
+ if (scrn->vtSema == TRUE) {
+ I830LeaveVT(VT_FUNC_ARGS(0));
+ }
+
intel_batch_teardown(scrn);
if (INTEL_INFO(intel)->gen >= 40)