egl/wayland: handle NULL native_window in create_surface
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 18 Jun 2015 19:19:32 +0000 (20:19 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 30 Jun 2015 16:34:31 +0000 (17:34 +0100)
commit0afa6335079093627b47ff08da38bed00972c217
tree6b9ecfef1d07f777cf4de0493587dba1772346a8
parent6098ef824467f685fb34914eb3fef73b3ba18c6f
egl/wayland: handle NULL native_window in create_surface

Raise EGL_BAD_NATIVE_WINDOW instead of crashing.

v2: s/Rise/Raise/ (spotted by Michel)

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/egl/drivers/dri2/platform_wayland.c