diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/vivante.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vivante.c b/src/vivante.c index 04901a8..8127d3b 100644 --- a/src/vivante.c +++ b/src/vivante.c @@ -379,10 +379,6 @@ static Bool vivante_CloseScreen(CLOSE_SCREEN_ARGS_DECL) PictureScreenPtr ps = GetPictureScreenIfSet(pScreen); #endif -#ifdef HAVE_DRI2 - vivante_dri2_CloseScreen(CLOSE_SCREEN_ARGS); -#endif - #ifdef RENDER /* Restore the Pointers */ ps->Composite = vivante->Composite; @@ -405,6 +401,10 @@ static Bool vivante_CloseScreen(CLOSE_SCREEN_ARGS_DECL) pScreen->BitmapToRegion = vivante->BitmapToRegion; pScreen->BlockHandler = vivante->BlockHandler; +#ifdef HAVE_DRI2 + vivante_dri2_CloseScreen(CLOSE_SCREEN_ARGS); +#endif + vivante_unmap_from_gpu(vivante, vivante->batch_info, vivante->batch_handle); |