egl_dri2: NULL check for EGLNativeWindowType
authorElvis Lee <kwangwoong.lee@lge.com>
Wed, 11 Jul 2012 02:13:51 +0000 (11:13 +0900)
committerBrian Paul <brianp@vmware.com>
Mon, 16 Jul 2012 22:03:31 +0000 (16:03 -0600)
commitcf775c9cbf86676aa321eb9665fe38aeba35afc9
tree22623da8d8ea8bf36a4daffe8beac9eabfa429ce
parentd80fd04639a6e378c6e13c8ffaa91d43decf58a8
egl_dri2: NULL check for EGLNativeWindowType

Some application calls eglCreateWindowSurface with
EGLNativeWindowType parameter having zero value. It causes SEGV
and disturbs error handling like EGL_NO_SURFACE.

Signed-off-by: Elvis Lee <kwangwoong.lee@lge.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
src/egl/drivers/dri2/platform_drm.c