121 Commits

Author SHA1 Message Date
twinaphex
4b5951bda3 Rename gl_common.h to gl2_common.h and remove some file dependencies
on it
2021-09-26 17:42:12 +02:00
Érico Rolim
87d99601f6 [gfx] Fix static function placement.
In gfx/drivers_context/vc_egl_ctx.c, move gfx_ctx_vc_bind_api
declaration to before it's called by any other function, otherwise it
warns about "warning: implicit declaration of function" and can error
out with "error: conflicting types for 'gfx_ctx_vc_bind_api'" in certain
cases.
2020-08-10 00:51:14 -03:00
twinaphex
465e84d60c (context drivers) Make names uniform 2020-07-20 18:22:33 +02:00
twinaphex
34662e8fe8 (Context drivers) Cleanups - use egl_get_proc_address directly instead
of wrapper functions
2020-07-18 17:22:24 +02:00
twinaphex
9f9d59f2be Cleanups 2020-07-17 16:46:00 +02:00
twinaphex
6a5770af6d Cleanups 2020-07-17 01:17:37 +02:00
twinaphex
be1e245396 Cleanups 2020-07-17 00:59:20 +02:00
natinusala
00590f2077 Fix VG and VC EGL 2020-03-20 09:19:06 +01:00
twinaphex
4598f186a8 Get rid of video_frame_info dependency 2020-03-07 00:39:06 +01:00
twinaphex
4d7b627421 Get rid of video_info dependency for set_video_mode 2020-03-06 22:58:12 +01:00
twinaphex
e20151a048 Get rid of video_info struct for swap_buffers too 2020-03-06 22:29:51 +01:00
twinaphex
4aae293e3d Remove is_shutdown from check_window 2020-03-06 20:29:31 +01:00
twinaphex
1b0ab1c05f Cleanups 2020-02-21 07:34:53 +01:00
twinaphex
fa7859ad13 (Gfx drivers context) Cleanup EGL calls 2020-01-06 18:27:18 +01:00
twinaphex
53dbd69751 (EGL) Create egl_bind_api 2020-01-04 15:09:42 +01:00
twinaphex
65b4c2595e Update set keyboard mapping code for input driver 2019-07-27 02:21:24 +02:00
twinaphex
453cc3dcbd (video context driver) has_Windowed can be degraded to a simple
boolean variable
2019-07-26 06:23:20 +02:00
twinaphex
ee3208ac39 Integrate video_driver.c into retroarch.c 2019-06-17 15:10:22 +02:00
twinaphex
b347b26d61 Reimplement shader flags being set - GL core should have only
Slang support and no GLSL, with the GL2 driver it is dependent
on the context driver
2019-03-13 14:06:50 +01:00
orbea
28ff4b391a Clean up white space. 2019-02-03 16:00:50 -08:00
twinaphex
62bea6ad11 SOme header cleanups 2019-02-02 22:02:24 +01:00
orbea
bfc366decc Squeeze extra blank lines with cat(1).
Example:

find . -type f -iname '*.c' | while read -r i; do
  cat -s "$i" > "$i.new"
  mv "$i.new" "$i"
done
2019-01-08 11:04:58 -08: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
4738ef545c Change interval type to signed int 2018-09-12 00:08:13 +02:00
twinaphex
6f4fd8859a Add customizable swapchain images flag to VC EGL context 2018-04-23 13:12:00 +02:00
Brandon Wright
533f898132 Add get refresh rate context function. Implement for X11 and Wayland. 2018-04-15 17:56:12 -05:00
ajefr
1da67cecf3
declaration error 2018-03-08 21:44:26 +01:00
ajefr
98f8ed637c
typo
stati -> static
2018-03-08 21:19:00 +01:00
twinaphex
9d45d26f56 Update 2018-03-01 21:26:32 +01:00
twinaphex
16c1bd7a03 Create context get_api function 2018-03-01 21:16:54 +01:00
twinaphex
f97d6ec909 (VC EGL) Cleanups 2018-01-20 02:03:49 +01: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
vanfanel
91c9da529f VC EGL context: Fixed hard freeze when toggling the bilinear filter option 2017-11-01 12:19:08 +01:00
vanfanel
b40d50bba4 Moved commented old implementation to proper location. 2017-10-19 14:21:47 +00:00
vanfanel
d9ec2267f7 Change max_swapchain=2 implementation to actually working code. 2017-10-18 12:06:58 +00:00
vanfanel
65ef37706c Add experimental way to make max_swapchain=2 work on EGL/GLES VideoCore (Raspberry Pi) 2017-10-18 03:06:30 +00:00
twinaphex
b0398c1482 C89 build fixes 2017-05-19 03:34:53 +02:00
twinaphex
f928e57064 Combine video_context_driver.c and video_driver.c 2017-05-09 01:25:59 +02:00
twinaphex
05e4ec733e Move uint variables 2017-04-28 21:03:04 +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
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
96c8ca5a09 Header update #1 2017-01-22 13:40:32 +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