summaryrefslogtreecommitdiff
path: root/uxa/uxa.c
diff options
context:
space:
mode:
Diffstat (limited to 'uxa/uxa.c')
-rw-r--r--uxa/uxa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/uxa/uxa.c b/uxa/uxa.c
index 3c81a851..856a0ce5 100644
--- a/uxa/uxa.c
+++ b/uxa/uxa.c
@@ -164,11 +164,12 @@ void uxa_finish_access(DrawablePtr pDrawable)
{
ScreenPtr pScreen = pDrawable->pScreen;
uxa_screen_t *uxa_screen = uxa_get_screen(pScreen);
- PixmapPtr pPixmap = uxa_get_drawable_pixmap(pDrawable);
+ PixmapPtr pPixmap;
if (uxa_screen->info->finish_access == NULL)
return;
+ pPixmap = uxa_get_drawable_pixmap(pDrawable);
if (!uxa_pixmap_is_offscreen(pPixmap))
return;