diff options
author | Michel Dänzer <mdaenzer@redhat.com> | 2019-11-29 16:37:32 +0100 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2019-11-29 16:47:54 +0100 |
commit | 0bc5b69a7edd538de815e27824b4cfd92926c032 (patch) | |
tree | 3c5e63689a0ec98870c833c633c96e8925949f96 | |
parent | b9bd8097e1d2c088b081f1b81799ea3892406214 (diff) |
Handle NULL fb_ptr in pixmap_get_fbradeon_pixmap_get_fb-fb_ptr-NULL
This can happen when HW acceleration is disabled.
Fixes https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/issues/188
-rw-r--r-- | src/radeon.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon.h b/src/radeon.h index 2c913466..8e964805 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -896,7 +896,7 @@ radeon_pixmap_get_fb(PixmapPtr pix) handle); } - return *fb_ptr; + return fb_ptr ? *fb_ptr : NULL; } |