egl: Always set _EGLDisplay->Device during eglGetPlatformDisplay()
authorRobert Foss <rfoss@kernel.org>
Mon, 31 Jul 2023 14:45:39 +0000 (16:45 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 1 Aug 2023 11:21:59 +0000 (11:21 +0000)
commit71db99e566dddce8ab9af8a42fba33c40238dd51
tree7409ba46f1934f49b4e0c6ba15deafb7b5ad25ea
parent1efaa85889051978f806c4ea7c6d4997329624e5
egl: Always set _EGLDisplay->Device during eglGetPlatformDisplay()

Make sure that all platform specific implementations of
eglGetPlatformDisplay() overwrite the Device field.

Fixes: c237539d621 ("egl: Implement EGL_EXT_explicit_device")

Signed-off-by: Robert Foss <rfoss@kernel.org>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24394>
src/egl/main/egldisplay.c