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
This commit is contained in:
Michel Dänzer
2019-11-29 16:37:32 +01:00
committed by Michel Dänzer
parent f223035f4f
commit 4d84cf438e

View File

@@ -896,7 +896,7 @@ radeon_pixmap_get_fb(PixmapPtr pix)
handle);
}
return *fb_ptr;
return fb_ptr ? *fb_ptr : NULL;
}