summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etnaviv/etnaviv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/etnaviv/etnaviv.c b/etnaviv/etnaviv.c
index 2662fc3..a737f2b 100644
--- a/etnaviv/etnaviv.c
+++ b/etnaviv/etnaviv.c
@@ -503,6 +503,9 @@ static Bool etnaviv_CloseScreen(CLOSE_SCREEN_ARGS_DECL)
etnaviv_dri2_CloseScreen(CLOSE_SCREEN_ARGS);
#endif
+ /* Ensure everything has been committed */
+ etnaviv_commit(etnaviv, TRUE, NULL);
+
pixmap = pScreen->GetScreenPixmap(pScreen);
etnaviv_free_pixmap(pixmap);