RetroArch/gfx/common
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
..
caca_common.h Header update #1 2017-01-22 13:40:32 +01:00
ctr_common.h Header update #1 2017-01-22 13:40:32 +01:00
d3d_common.cpp Header update #1 2017-01-22 13:40:32 +01:00
d3d_common.h Header update #1 2017-01-22 13:40:32 +01:00
dbus_common.c Split up dbus functions into separate file 2017-03-24 00:12:21 +01:00
dbus_common.h Split up dbus functions into separate file 2017-03-24 00:12:21 +01:00
drm_common.c Don't pass video_info by value to context_driver init function 2017-01-22 18:29:22 +01:00
drm_common.h Don't pass video_info by value to context_driver init function 2017-01-22 18:29:22 +01:00
egl_common.c Use eglGetPlatformDisplay when it's available. 2017-04-16 14:19:40 -06:00
egl_common.h Use eglGetPlatformDisplay when it's available. 2017-04-16 14:19:40 -06:00
gdi_common.h Header update #1 2017-01-22 13:40:32 +01:00
gl_common.c Start turning most matrix 4x4 functions into macros 2017-04-16 03:45:07 +02:00
gl_common.h add missing extern "C" guard. 2017-04-11 18:54:26 +01:00
vga_common.h DOS: add vga_common header 2017-01-22 10:47:11 -05:00
vita2d_common.h Header update #1 2017-01-22 13:40:32 +01:00
vksym.h Header update #1 2017-01-22 13:40:32 +01:00
vulkan_common.c Vulkan: Simple snow pipeline works. 2017-02-20 20:53:59 +01:00
vulkan_common.h (Vulkan) add bokeh menu shader for vulkan 2017-02-20 22:59:05 -06:00
win32_common.cpp Updates 2017-02-21 18:58:03 +01:00
win32_common.h Header update #1 2017-01-22 13:40:32 +01:00
x11_common.c Update log 2017-03-24 01:38:23 +01:00
x11_common.h Split up dbus functions into separate file 2017-03-24 00:12:21 +01:00
xinerama_common.c Update logs 2017-03-23 23:59:08 +01:00
xinerama_common.h Cleanups 2017-03-24 00:15:17 +01:00