RetroArch/gfx/drivers_context
Kyle Brenneman fcccc9dc0b Use eglGetPlatformDisplay when it's available.
Added a platform parameter to egl_init_context. If the caller provides a
platform other than EGL_NONE, then it will try to use eglGetPlatformDisplay or
eglGetPlatformDisplayEXT instead of eglGetDisplay.

If neither eglGetPlatformDisplay or eglGetPlatformDisplayEXT is supported, then
it will still fall back to calling eglGetDisplay.

Updated the Wayland, X11, and DRM callers to use the correct platform enum.
Those are the callers that don't just pass EGL_DEFAULT_DISPLAY as the native
display handle.

Calling eglGetDisplay with any value other than EGL_DEFAULT_DISPLAY is
inherently unreliable, because it requires the EGL implementation to guess a
platform type based on a (void *) pointer. Some implementations might not
identify a particular platform, or worse, might guess wrong.

Fixes https://github.com/libretro/RetroArch/issues/4790
2017-04-16 14:19:40 -06:00
..
android_ctx.c Use eglGetPlatformDisplay when it's available. 2017-04-16 14:19:40 -06:00
cgl_ctx.c Update check_window - we no longer need runloop.h inside context driver 2017-01-23 01:02:33 +01:00
cocoa_gl_ctx.m Silence unused variable warning 2017-04-15 20:20:47 +02:00
d3d_ctx.cpp Update check_window - we no longer need runloop.h inside context driver 2017-01-23 01:02:33 +01:00
drm_ctx.c Use eglGetPlatformDisplay when it's available. 2017-04-16 14:19:40 -06:00
emscriptenegl_ctx.c Use eglGetPlatformDisplay when it's available. 2017-04-16 14:19:40 -06:00
gdi_ctx.cpp Update check_window - we no longer need runloop.h inside context driver 2017-01-23 01:02:33 +01:00
gfx_null_ctx.c Update check_window - we no longer need runloop.h inside context driver 2017-01-23 01:02:33 +01:00
khr_display_ctx.c Update check_window - we no longer need runloop.h inside context driver 2017-01-23 01:02:33 +01:00
mali_fbdev_ctx.c Use eglGetPlatformDisplay when it's available. 2017-04-16 14:19:40 -06:00
opendingux_fbdev_ctx.c Use eglGetPlatformDisplay when it's available. 2017-04-16 14:19:40 -06:00
osmesa_ctx.c Update check_window - we no longer need runloop.h inside context driver 2017-01-23 01:02:33 +01:00
ps3_ctx.c Update check_window - we no longer need runloop.h inside context driver 2017-01-23 01:02:33 +01:00
qnx_ctx.c Use eglGetPlatformDisplay when it's available. 2017-04-16 14:19:40 -06:00
sdl_gl_ctx.c Update check_window - we no longer need runloop.h inside context driver 2017-01-23 01:02:33 +01:00
vc_egl_ctx.c Use eglGetPlatformDisplay when it's available. 2017-04-16 14:19:40 -06:00
vivante_fbdev_ctx.c Use eglGetPlatformDisplay when it's available. 2017-04-16 14:19:40 -06:00
wayland_ctx.c Use eglGetPlatformDisplay when it's available. 2017-04-16 14:19:40 -06:00
wgl_ctx.cpp Update check_window - we no longer need runloop.h inside context driver 2017-01-23 01:02:33 +01:00
x_ctx.c Make some log messages more consistent 2017-03-24 00:28:21 +01:00
xegl_ctx.c Use eglGetPlatformDisplay when it's available. 2017-04-16 14:19:40 -06:00