Commit Graph

759 Commits

Author SHA1 Message Date
twinaphex
f5a12d63cc (Cocoa) Try to support Core GL 3.1/3.2/3.3 and 4.1 on OSX 10.7 and
10.10 respectively
2017-06-26 07:16:41 +02:00
twinaphex
f087419165 Rename platform_linux.c to platform_unix.c 2017-06-19 17:38:49 +02:00
twinaphex
097d9bc13b (iOS) Buildfix 2017-06-18 19:43:55 +02:00
Twinaphex
56d744ceaa (Cocoa) Shared hardware context starts to work now 2017-06-18 19:35:34 +02:00
twinaphex
a3f216ba86 (Android) Try to move this code to set_video_mode 2017-06-18 17:21:33 +02:00
twinaphex
4850af8eac Revert "Try to set use_hw_ctx in advance for Android"
This reverts commit c010c5b258.
2017-06-18 17:09:27 +02:00
twinaphex
c010c5b258 Try to set use_hw_ctx in advance for Android 2017-06-18 16:45:36 +02:00
twinaphex
060753258a Combine input_driver.c and input_keyboard.c 2017-06-11 17:51:12 +02:00
twinaphex
95e588ce0f Fix C89_BUILD 2017-06-10 12:52:45 +02:00
twinaphex
3443153ccc (DRM/KMS) If we have the X11 input driver selected, default to udev and/or
linuxraw driver instead
2017-06-06 21:15:32 +02:00
twinaphex
ded0813f6b Don't need this header 2017-06-06 07:36:06 +02:00
twinaphex
f307135d1d Split up wayland input driver into separate driver; and
improve mouse support for menu
2017-06-06 07:34:33 +02:00
twinaphex
6b3dbff75f Merge input_driver.c and input_joypad_driver.c 2017-06-06 05:56:02 +02:00
twinaphex
9ebfb36b4e Use rarch_keysym_lut directly 2017-06-06 05:17:25 +02:00
Zoran Vuckovic
2056ebc803 Allow udev input to be used with X11 context 2017-06-02 01:08:28 +02:00
twinaphex
b91dd1413f Silence warning 2017-05-26 19:32:18 +02:00
Brad Parker
a04b54006d win32: disable winraw input driver for targets older than XP 2017-05-23 21:03:00 -04:00
Zoran Vuckovic
8535e766c8 Alow raw input driver to be used with GDI 2017-05-20 09:13:00 +02:00
Zoran Vuckovic
2eb7499b64 Alow raw input driver to be used with Direct3D 2017-05-19 19:36:14 +02:00
twinaphex
1ffb1f4feb Use wrapper function for memcmp 2017-05-19 16:20:30 +02:00
Zoran Vuckovic
9358b0c3f3 Allow raw input driver with OpenGL driver under Windows 2017-05-19 16:13:32 +02:00
Twinaphex
5e0eec8857 Remove unused variable 2017-05-19 14:53:25 +02:00
twinaphex
9d74212a41 Buildfix 2017-05-19 03:35:32 +02:00
twinaphex
b0398c1482 C89 build fixes 2017-05-19 03:34:53 +02:00
twinaphex
acbf11931b Move code 2017-05-16 22:46:56 +02:00
twinaphex
717709ef9e (wgl_ctx.cpp) Cleanups 2017-05-16 22:46:09 +02:00
twinaphex
f24a73351c Only use wglGetProcAddress for OpenGL 2017-05-16 22:40:47 +02:00
twinaphex
126a5bf121 Use string_is_equal_fast/string_is_not_equal_fast 2017-05-16 04:00:37 +02:00
twinaphex
f928e57064 Combine video_context_driver.c and video_driver.c 2017-05-09 01:25:59 +02:00
twinaphex
ed86a2ed10 Add threading error notes 2017-05-06 17:35:12 +02:00
twinaphex
05e4ec733e Move uint variables 2017-04-28 21:03:04 +02:00
twinaphex
301ee64e80 Add HAVE_XINERAMA ifdefs 2017-04-26 15:29:21 +02:00
twinaphex
953045f0d2 Update logs 2017-04-23 11:56:46 +02:00
twinaphex
6ebd4e139e Rewrite more string_is_equal call invocations as memcmp 2017-04-22 08:51:16 +02:00
Kyle Brenneman
a4d19e174a Define the platform enums if they aren't in eglext.h.
Add #defines for EGL_PLATFORM_X11_KHR, EGL_PLATFORM_WAYLAND_KHR, and
EGL_PLATFORM_GBM_KHR, if they aren't already defiend in eglext.h.
2017-04-19 07:08:05 -06: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
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
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
80017f7d71 (OSX) Try to free allocation at the end of get_selector 2017-04-15 19:13:21 +02:00
Jools Wills
b587018c56 hardcode struct for compatibility between various mali EGL headers
Old kronos headers used mali_native_window, ARM's headers used fbdev_window, and
latest mali-fbdev package on the odroid with newer khronos headers, the struct seems missing
2017-04-07 18:55:33 +01:00
twinaphex
1b27c3dec1 Make some log messages more consistent 2017-03-24 00:28:21 +01:00
twinaphex
805470072b Make desktop_mode a static variable inside x11_common.c 2017-03-23 20:07:56 +01:00
twinaphex
1ce3b12335 Split up xinerama functions into separate files 2017-03-23 19:59:11 +01:00
twinaphex
09e7186a4e Start splitting up xinerama functions 2017-03-23 19:46:06 +01:00
twinaphex
207ebe5e59 Merge lakka patch for DRM 2017-01-29 03:55:32 +01:00