Skip to content
Snippets Groups Projects
Commit 9a4eae61 authored by Frank Binns's avatar Frank Binns Committed by Emil Velikov
Browse files

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: default avatarFrank Binns <frank.binns@imgtec.com>
Reviewed-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
parent 3b491cbc
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment