egl/x11: don't abort when creating a DRI2 drawable fails
authorFrank Binns <frank.binns@imgtec.com>
Tue, 4 Aug 2015 13:32:45 +0000 (14:32 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 13 Aug 2015 16:36:06 +0000 (17:36 +0100)
commit9a4eae61c24858d69d731d63b141d2acaed40d69
tree9225f24c171568b19e06962c9142b7d30c9e41b9
parent3b491cbc42f6cfad2e750957f720b15b95278acf
egl/x11: don't abort when creating a DRI2 drawable fails

When calling either eglCreateWindowSurface or eglCreatePixmapSurface it
was possible for an application to be aborted as a result of it failing
to create a DRI2 drawable on the server. This could happen due to an
application passing in an invalid native drawable handle, for example.

v2: Handle the case where an error has been set on the connection

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/egl/drivers/dri2/platform_x11.c