diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-10-06 10:20:49 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-10-06 12:17:14 +0100 |
commit | 23ee926bcd8ddd7a2785786efdf119e4fae75bfd (patch) | |
tree | 38acd6f1882e5ecc311c17dde818b4f584caf2bc /uxa/uxa.c | |
parent | 707901bf98073fb56179a0b61c806f85ef8f413c (diff) |
uxa: Skip a pixmap lookup if there is no driver finish access function
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'uxa/uxa.c')
-rw-r--r-- | uxa/uxa.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |