egl/x11: don't crash if dri2_dpy->conn is NULL
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 7 Aug 2015 18:20:48 +0000 (19:20 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 7 Aug 2015 18:22:27 +0000 (19:22 +0100)
commit6de9a03bed400fca5672ef0c13c0039bbe94a679
treef56b0057cc86fd82cefcba4e355417079ee2b56a
parent2c7b6cf512a775a37677b1e467d2af952c449dae
egl/x11: don't crash if dri2_dpy->conn is NULL

Identical to commit 60e9c35b3a0(egl/x11: bail out if we cannot fetch
the xcb connection) but for the swrast codepath.

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