diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-10-06 10:20:49 +0100 |
---|---|---|
committer | Owain G. Ainsworth <oga@openbsd.org> | 2011-03-16 18:44:36 +0000 |
commit | 84a08433d4509af1a3ed3635017d9c531f6a8338 (patch) | |
tree | 0a52e4efbf4d27504f1f6d0b052d6f1034150bca /uxa | |
parent | b7947ea70042a657ef48e145ce9265b1c6b8a4bd (diff) |
uxa: Skip a pixmap lookup if there is no driver finish access function
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
(cherry picked from commit 23ee926bcd8ddd7a2785786efdf119e4fae75bfd)
Signed-off-by: Owain G. Ainsworth <oga@openbsd.org>
Diffstat (limited to 'uxa')
-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; |