Commit Graph

37479 Commits

Author SHA1 Message Date
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 5b9a17dc8f (gfx/scaler) Cleanups 2017-04-16 19:54:38 +02:00
twinaphex f21bb4d0dc Simplify scaler_filter 2017-04-16 12:57:21 +02:00
twinaphex 0c5a87b1d7 Create scaler_ctx_scale_direct 2017-04-16 11:03:29 +02:00
twinaphex 9c7dd3068f Get rid of unnecessary wrappers around calloc/free 2017-04-16 10:39:42 +02:00
twinaphex f14dbe081b Simplify scaler.c 2017-04-16 10:36:16 +02:00
twinaphex 8fd0033b43 Simplify scaler code 2017-04-16 10:29:22 +02:00
twinaphex 602ba5d8a6 scaler_filter - cleanups 2017-04-16 09:58:42 +02:00
twinaphex 9ee32a4dd6 Style nit 2017-04-16 09:50:53 +02:00
twinaphex 23bedbb3fb Turn libretro_get_environment_info into static function 2017-04-16 09:42:17 +02:00
twinaphex c1e85bb504 Add to CHANGES.md 2017-04-16 08:45:29 +02:00
twinaphex b43d0b4201 Simplify matrix_3x3 2017-04-16 08:36:04 +02:00
twinaphex 9b3519f850 Turn matrix_4x4_lookat into macro, remove matrix_4x4.c 2017-04-16 07:57:31 +02:00
twinaphex 257410d058 Turn matrix_4x4_multiply into macro 2017-04-16 07:55:02 +02:00
twinaphex b7aefa71f8 Cleanups to matrix_3x3.c 2017-04-16 07:30:23 +02:00
twinaphex 8ac346be63 (libretro-common) Cleanups 2017-04-16 05:06:15 +02:00
twinaphex a86e6975cc Update 2017-04-16 04:57:45 +02:00
twinaphex 8f7fc79cd7 Don't include retro_inline.h 2017-04-16 04:50:34 +02:00
twinaphex e06006b436 Turn more matrix_4x4 functions into macros 2017-04-16 04:44:35 +02:00
twinaphex d30686a78f Add math.h header include to matrix_4x4.h 2017-04-16 04:03:55 +02:00
twinaphex 32cebbbcba Turn more matrix_4x4 functions into macros 2017-04-16 04:00:20 +02:00
twinaphex fbd6d0ebc6 Turn more matrix 4x4 functions into macros 2017-04-16 03:53:07 +02:00
twinaphex 809bce6cd9 Start turning most matrix 4x4 functions into macros 2017-04-16 03:45:07 +02:00
twinaphex 793930b352 Simplify matrix_4x4_identity 2017-04-16 03:34:33 +02:00
twinaphex bd63327c3d Cleanup matrix_3x3_identity 2017-04-15 22:30:02 +02:00
twinaphex a9492f6a44 Cleanups 2017-04-15 22:27:23 +02:00
twinaphex b591d63e8b Silence unused variable warning 2017-04-15 20:20:47 +02:00
twinaphex 4b419ce125 (iOS) Fix 'release is unavailable; not available in automatic reference
counting mode'
2017-04-15 20:20:08 +02:00
Zoran Vuckovic 66f1c42fcc Add sync off support, improve format negotiation 2017-04-15 20:09:14 +02:00
Zoran Vuckovic 05a3f43057 Add sync off support, improve format negotiation 2017-04-15 20:09:08 +02:00
twinaphex 7f4b490fdb Prevent implicit memsets with struct video_viewport 2017-04-15 19:43:52 +02:00
twinaphex e3fce81097 Use BRIDGE macro 2017-04-15 19:28:10 +02:00
twinaphex 1d97a81224 Optimize get_backing_scale_factor - store result of backing scale
factor query and use it for later function call invocations
2017-04-15 19:27:33 +02:00
Twinaphex 2324399fa8 Buildfix 2017-04-15 19:21:10 +02:00
twinaphex e97682d4ca Simplify cocoa_gl_ctx.m 2017-04-15 19:20:42 +02:00
Twinaphex a5998cb589 (MUI) Remove some unused variables 2017-04-15 19:14:02 +02:00
Twinaphex 80017f7d71 (OSX) Try to free allocation at the end of get_selector 2017-04-15 19:13:21 +02:00
Twinaphex fe33f30c15 Merge pull request #4824 from fr500/master
Couple of small fixes
2017-04-15 18:11:32 +02:00
radius 0b2afde90b Partial match is never used and interferes with the fallback mechanism 2017-04-15 10:47:51 -05:00
radius 89829d22b4 [lobby] disable these logs, too verbose for production 2017-04-15 10:47:51 -05:00
twinaphex 592fe4d967 Too long filenames were causing crashes/segfaults 2017-04-15 02:38:22 +02:00
twinaphex f9b75e7d76 CXX_BUILD buildfix 2017-04-14 03:40:58 +02:00
Zoran Vuckovic 90cfb50658 Added settings and non-standard frame rate handling 2017-04-14 03:35:40 +02:00
aliaspider c04573233c add missing extern "C" guard. 2017-04-11 18:54:26 +01:00
aliaspider f73c3af445 (msvc) use the correct config for x64 builds. 2017-04-11 17:58:35 +01:00
aliaspider b1d750bc1d enable x64 builds in RetroArch-msvc2010.sln 2017-04-11 16:31:18 +01:00
twinaphex a58395b718 Add to CHANGES.md 2017-04-11 00:55:47 +02:00
twinaphex d63e79a8ce (Griffin) Update 2017-04-11 00:54:21 +02:00
twinaphex 0341bdcf77 (WASAPI) Get rid of this header include 2017-04-11 00:51:34 +02:00
twinaphex 05496a8b57 (WASAPI) Nits 2017-04-11 00:35:21 +02:00