egl_dri2: NULL check for xcb_dri2_get_buffers_reply()
authorDaniel Czarnowski <daniel.czarnowski@intel.com>
Thu, 11 Feb 2016 12:03:58 +0000 (14:03 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 15 Feb 2016 05:43:27 +0000 (07:43 +0200)
commit5d87a7c894d8327491be804fee8005fadfaeb3f1
tree70c759dd44bd32c487837a7f57ac8c2359409e9d
parent331f963b7e34e292300fb17f86310c76be07d644
egl_dri2: NULL check for xcb_dri2_get_buffers_reply()

Without the check, unsuccessful xcb_dri2_get_buffers_reply(...) causes
segmentation fault in dri2_get_buffers.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org
src/egl/drivers/dri2/platform_x11.c