egl: drop unreachable BAD_NATIVE_WINDOW conditions
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 4 Aug 2017 23:25:47 +0000 (00:25 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 10 Aug 2017 18:27:03 +0000 (19:27 +0100)
commit92b23683ebc839b13a565252cf13f5c2a715dcaa
tree49860d767bb605474ca1707a06fd45cfe969d909
parent47b06f5821551375e98699ca8ea41d06dc4ba0e9
egl: drop unreachable BAD_NATIVE_WINDOW conditions

The code in _eglCreateWindowSurfaceCommon() already has a NULL check
which handles the condition. There's no point in checking again further
down the stack.

v2: Split the WINDOW vs PIXMAP into separate patches
v3: Resolve typos, s/EGL_PIXMAP_BIT_BIT/EGL_PIXMAP_BIT/

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/egl/drivers/dri2/platform_android.c
src/egl/drivers/dri2/platform_drm.c
src/egl/drivers/dri2/platform_wayland.c
src/egl/drivers/dri2/platform_x11.c