egl: remove unneeded _eglGetNativePlatform check
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 13 Nov 2017 14:04:59 +0000 (14:04 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 7 Aug 2018 16:58:52 +0000 (17:58 +0100)
commit670cd4080b27b52df2d303d91bcccfa544c7197a
tree1043d489be4081a68df7f22e73bb452583038849
parentb4b277f77061f90851b943c65f6d4e140da79855
egl: remove unneeded _eglGetNativePlatform check

There's little point in calling _eglGetNativePlatform() in
eglCopyBuffers. The platform returned should be identical to the one
already stored in our _EGLDisplay.

In the following corner case, the check is incorrect.

The function _eglGetNativePlatform effectively invokes the old-style
eglGetDisplay platform selection. Thus if the EGL_PLATFORM platform does
not match with the EGL_EXT_platform_* used to create the display we'll
error out.

Addresses the egl-copy-buffers piglit test.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/egl/main/eglapi.c