Commit Graph

83 Commits

Author SHA1 Message Date
libretroadmin
aa9f53659f (EGL) Remove egl_has_config 2023-02-21 22:16:04 +01:00
libretroadmin
cc85d7fd6d (EGL) Cleanups
(GLSL) Buildfix
2023-02-21 21:09:47 +01:00
libretroadmin
daa9e352cc Remove asserts 2023-01-09 00:51:05 +01:00
libretroadmin
3b38ea195f Use HAVE_DYLIB for loading dynamic libraries instead of HAVE_DYNAMIC 2022-11-21 05:23:43 +01:00
LibretroAdmin
0c7408ee16 (EGL) Buildfix 2022-08-27 15:43:16 +02:00
LibretroAdmin
bbf93812a5 (EGL) Turn some EGL functions static 2022-08-27 15:35:08 +02:00
twinaphex
31eaeb1a03 Create gl_flush 2021-09-26 22:28:28 +02:00
jdgleaver
484c4ad51e Add API extension for cores to override frontend fast-forward state 2021-05-13 13:16:37 +01:00
twinaphex
00518d3470 Add TODO/FIXME notes 2020-07-07 03:02:55 +02:00
twinaphex
f852209040 Silence some unused variable warnings on some targets 2020-01-19 06:04:37 +01:00
twinaphex
f97e557194 (DRM/EGL) Buildfix 2020-01-06 00:33:28 +01:00
twinaphex
4380b73ca6 Add HAVE_DYNAMIC_EGL option 2020-01-05 19:14:47 +01:00
twinaphex
6e0971fc61 (EGL) Call EGL common calls 2020-01-04 19:58:57 +01:00
twinaphex
d5cdfbb7ba Move all EGL functions to egl_common.c file 2020-01-04 19:22:02 +01:00
twinaphex
53dbd69751 (EGL) Create egl_bind_api 2020-01-04 15:09:42 +01:00
driver1998
de203390be [Windows] Add ANGLE support 2019-12-06 13:24:17 +08:00
twinaphex
b2946f4f1e egl_swap_buffers - be safer 2019-07-18 18:54:26 +02:00
orbea
ff2e3bbbce Fix CXX_BUILD errors. 2019-01-13 11:51:33 -08:00
Greg V
3ab7e780d1 EGL: use unused 'n' argument for storing the config count (fixes #7953)
The 'n' argument was probably intended for the count, but it was unused.
The Wayland platform would check whether n would be non-zero (and
wouldn't initialize n with zero), so it would only succeed because it
was initialized with random garbage.

Pointy hat: @Sunderland93
2019-01-11 20:41:40 +03:00
Francisco José García García
c56e9b1ff6 [ORBIS] eglSwapInterval workaround 2018-12-30 14:01:10 +01:00
Themaister
868465ad01 EGL: Add callback to select EGLConfig.
A more robust fix for DRM/GBM shenanigans.
2018-12-11 20:12:25 +01:00
twinaphex
bfd9141577 Play it safe for non-GBM targets 2018-12-07 21:15:38 +01:00
twinaphex
96840572ef Add HAVE_GBM ifdefs 2018-12-07 20:18:01 +01:00
twinaphex
7638637518 Cleanups 2018-12-07 00:51:56 +01:00
orbea
5898f3e5d2 Fix KMS with OpenGL.
All credit for this patch goes to dtsarr.

Fixes https://github.com/libretro/RetroArch/issues/7119
2018-12-06 08:34:26 -08:00
twinaphex
4738ef545c Change interval type to signed int 2018-09-12 00:08:13 +02:00
gblues
6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
twinaphex
f12ea0e1e3 Fix C89_BUILD 2017-04-22 09:37:36 +02:00
Kyle Brenneman
7baa75bee0 Add #ifdefs for trying to use eglGetPlatformDisplay.
Add #ifdefs for EGL_VERSION_1_5 and EGL_EXT_platform_base around the calls to
eglGetPlatformDisplay and eglGetPlatformDisplayEXT, respectively.

This avoids compiler errors when the EGL header files don't have the necessary
declarations for EGL 1.5 or EGL_EXT_platform_base.

Follow-up fix for https://github.com/libretro/RetroArch/issues/4790
2017-04-16 17:11:27 -06:00
twinaphex
d433d592e1 Do this workaround for now - for Android/Emscripten 2017-04-17 00:26:20 +02:00
twinaphex
96d984b04d (egl_common.c) Cleanups/style nits 2017-04-17 00:04:08 +02:00
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
twinaphex
f9b75e7d76 CXX_BUILD buildfix 2017-04-14 03:40:58 +02:00
twinaphex
3da08c9d9e Cleanup egl_create_context 2017-03-30 02:39:08 +02:00
twinaphex
38f9b93885 Refine egl_init_context - DRM EGL contexts still fails
at eglGetDisplay
2017-03-30 02:31:51 +02:00
twinaphex
96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
Josh Palmer
e1d3493a9d Handle more cases for EGL error reporting 2017-01-09 20:26:09 +00:00
twinaphex
4b2a906148 (gfx/common) Cleanups 2016-12-04 03:45:46 +01:00
twinaphex
b43f786f89 Cleanups 2016-09-08 08:15:40 +02:00
Brad Parker
0eb1777a1f remove extra semicolons 2016-09-03 10:30:21 -04:00
twinaphex
76cc6fd8ec Start implementing signal handler code once in frontend driver code 2016-07-08 02:38:33 +02:00
twinaphex
b434f0863a CXX_BUILD buildfix 2016-06-23 07:44:56 +02:00
Twinaphex
e133ce31e8 (QNX) Buildfixes 2016-05-19 20:10:10 +02:00
twinaphex
d9ddb92a90 (egl_common.c) Silence warning 2016-04-22 07:56:32 +02:00
twinaphex
e938be3747 Have to rewrite EGL context code 2016-03-01 06:49:05 +01:00
Alcaro
7a6463a300 Add escape hatch if rarch (or the core) is in an infinite loop. 2016-02-23 16:11:39 +01:00
twinaphex
7da0739b61 Get rid of global g_egl_api now too 2016-02-22 11:54:55 +01:00
twinaphex
22a677b3a8 Don't use egl_common's 'api' variable anymore 2016-02-22 11:54:19 +01:00
twinaphex
54f46f4ee3 Update headers 2016-01-10 04:41:52 +01:00
Alcaro
9e3994408e What is that typecast dance good for? 2015-12-10 14:10:42 +01:00