summaryrefslogtreecommitdiff
path: root/src/radeon.h
diff options
context:
space:
mode:
authorMichel Dänzer <mdaenzer@redhat.com>2019-11-29 16:37:32 +0100
committerMichel Dänzer <michel@daenzer.net>2020-02-10 15:53:48 +0000
commit4d84cf438e7f1bebf0053035ef0292e9fed257d1 (patch)
treefbf0f3182691cd8bb0578d59b154ac41d49c3c93 /src/radeon.h
parentf223035f4ffcff2a9296d1e907a5193f8e8845a3 (diff)
Handle NULL fb_ptr in pixmap_get_fb
This can happen when HW acceleration is disabled. Fixes https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/issues/188
Diffstat (limited to 'src/radeon.h')
-rw-r--r--src/radeon.h2
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;
}