egl/x11: check for dri2_dpy->flush before using the flush extension
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 12 May 2017 14:25:00 +0000 (15:25 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 29 May 2017 15:59:20 +0000 (16:59 +0100)
commit14e51d526ff68e3e4b054b8e5d7df83f0cc313d6
tree8989264f0a7a3f97e19e5d45b2d6a028265d6a83
parent1398ece02c9a3bf93ad5a52987fca3a30a22fdf8
egl/x11: check for dri2_dpy->flush before using the flush extension

Analogous to earlier commit.

Note that the dri2_x11_post_sub_buffer and dri2_x11_swap_buffers_region
paths already implicitly require __DRI2_FLUSH. The corresponding
extensions (NV_post_sub_buffer and NOK_swap_region) are enabled only
with DRI2.

v2: Split cosmetic changes into separate patch.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/platform_x11.c