mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-05 01:33:31 +00:00
fcccc9dc0b
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 |
||
---|---|---|
.. | ||
android_ctx.c | ||
cgl_ctx.c | ||
cocoa_gl_ctx.m | ||
d3d_ctx.cpp | ||
drm_ctx.c | ||
emscriptenegl_ctx.c | ||
gdi_ctx.cpp | ||
gfx_null_ctx.c | ||
khr_display_ctx.c | ||
mali_fbdev_ctx.c | ||
opendingux_fbdev_ctx.c | ||
osmesa_ctx.c | ||
ps3_ctx.c | ||
qnx_ctx.c | ||
sdl_gl_ctx.c | ||
vc_egl_ctx.c | ||
vivante_fbdev_ctx.c | ||
wayland_ctx.c | ||
wgl_ctx.cpp | ||
x_ctx.c | ||
xegl_ctx.c |