83 Commits

Author SHA1 Message Date
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
97095404bd Buildfixes 2017-11-13 11:04:09 +01:00
Alcaro
58bae8456a
Remove filestream dependency
This causes issues in #5664
2017-11-13 09:45:48 +00:00
twinaphex
b0398c1482 C89 build fixes 2017-05-19 03:34:53 +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
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
6247d6ea1d Update check_window - we no longer need runloop.h inside context driver 2017-01-23 01:02:33 +01:00
twinaphex
4ea31e99aa Remove some header includes 2017-01-23 00:39:20 +01:00
twinaphex
1ea3bea0ee Don't pass video_info by value to context_driver init function 2017-01-22 18:29:22 +01:00
twinaphex
9d1de5c974 Rewrite video_context_driver_set_resize 2017-01-19 14:31:57 +01:00
twinaphex
7fbd3fcfb6 Simplify has_windowed 2017-01-19 02:50:56 +01:00
twinaphex
b96e0bb820 Remove stub update_title functions 2017-01-19 01:58:44 +01:00
twinaphex
34da27c36b Don't need 'frame_count' variable for check_window 2017-01-18 21:47:12 +01:00
twinaphex
a6a4808e94 Refactor frame monitor code 2017-01-18 17:41:27 +01:00
twinaphex
666534cc74 Grab settings pointer only once inside wrapper 'input_driver' function 2017-01-16 00:14:10 +01:00
twinaphex
1fa3475d79 Add parameter to video_context_driver's 'init' function 2017-01-13 16:52:07 +01:00
twinaphex
80f79130c0 Update set_video_mode context driver callback function 2017-01-11 06:35:50 +01:00
twinaphex
36fb6776b2 Don't grab settings pointer in video_monitor_get_fps function 2017-01-09 15:42:14 +01:00
twinaphex
6b3cc9068d Pass video_info to swap_buffers too 2017-01-09 14:59:15 +01:00
twinaphex
3d92ce140e Pass video_frame_info_t to update_window_title 2017-01-09 14:42:07 +01:00
twinaphex
77e5cdbfde Revert "Rename runloop_msg_queue_push to video_driver_msg_queue_push"
This reverts commit ad7386913cf2876d2bffd4bedf0284b23f1ed593.
2016-12-22 23:36:11 +01:00
twinaphex
ad7386913c Rename runloop_msg_queue_push to video_driver_msg_queue_push
and move code to video_driver.c
2016-12-22 13:15:02 +01:00
Jools Wills
4153785130 added stdlib.h - fixes warning with free / system 2016-12-15 18:59:20 +00:00
twinaphex
cd8fad87fc (Mali) Cleanups 2016-12-04 03:48:05 +01:00
twinaphex
51b0e61712 Cleanups 2016-09-11 16:24:02 +02:00
twinaphex
7e83162c60 Remove general.h 2016-09-11 15:10:58 +02:00
twinaphex
6f47289ba6 Start adding HAVE_CONFIG_H to gfx/drivers_context 2016-09-06 19:39:02 +02:00
twinaphex
acd4dd527b Header include cleanups 2016-09-05 18:31:32 +02:00
twinaphex
aa15fb3f91 Update remaining video context drivers 2016-08-31 15:02:07 +02:00
twinaphex
e1a5379886 (FBDev) Cleanups/unifications 2016-07-08 14:29:16 +02:00
twinaphex
bddd93bcaa (EGL) Don't use g_egl_quit and egl_install_sighandler 2016-07-08 12:58:06 +02:00
twinaphex
60233d1abb Add set_flags to context driver 2016-05-05 17:35:28 +02:00
twinaphex
8136683ffc (context drivers) Start exposing core GL flag 2016-05-05 05:46:00 +02:00
twinaphex
a0425dfb14 (Context drivers) Add get_flags function 2016-05-05 05:35:35 +02:00
twinaphex
1b289c0f05 (libretro-common) Update 2016-03-24 04:23:17 +01:00
twinaphex
e41127459e Rename 'filestream' functions 2016-03-24 04:09:25 +01:00
twinaphex
3720cf87e7 Rename retro_file to file_stream 2016-03-20 16:29:14 +01:00
Jean-André Santoni
a16ce4a146 Fix a typo in mali_fbdev_ctx 2016-03-10 01:50:30 +07:00
twinaphex
dc12f07a55 (mali_fbdev) Add some ifdefs 2016-03-01 07:17:57 +01:00
twinaphex
e938be3747 Have to rewrite EGL context code 2016-03-01 06:49:05 +01:00
twinaphex
3b8932b302 Turn returntype of set_resize into bool 2016-01-07 00:58:33 +01:00
Jean-André Santoni
6f5d09b235 (Mali) Fix mali fbdev build 2015-12-15 10:23:02 +07:00
Higor Eurípedes
c2d4da4660 (mali) Convert to new egl common api 2015-12-08 17:33:59 -03:00
Higor Eurípedes
c257374dcd (video_context_driver) Make better use of the data argument in context calls 2015-12-08 12:19:08 -03:00
twinaphex
2d55dc3bda Complete namespace changes 2015-12-07 15:32:14 +01:00
twinaphex
85dbeeb8f9 No more video_monitor.h 2015-11-22 13:32:46 +01:00
twinaphex
2f151896eb use egl_create_surface everywhere 2015-11-20 13:43:05 +01:00
twinaphex
3c842823bc (Mali/Wayland) Use egl_create_context 2015-11-19 18:36:24 +01:00
twinaphex
c1e61f7ff0 Start using egl_init_context for most GLES context drivers 2015-11-19 18:10:59 +01:00
twinaphex
ee3f625a83 Remove signal includes 2015-11-19 15:57:09 +01:00