twinaphex
d4af68d2dd
Add glsym/rglgen.h for x_ctx.c
2021-09-26 22:16:18 +02:00
twinaphex
4aafbf2340
Create gl_common.c/gl_common.h
2021-09-26 19:57:08 +02:00
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
twinaphex
b5be2006f2
Remove commented out code
2021-06-22 18:25:54 +02:00
Grant
bd10e5bdc3
fix x11 threaded videoc segfault
2021-06-21 21:12:26 +01:00
CTCaer
a8028d5e8e
X11: fix fullscreen when swapping monitors/resolution
...
Most DEs have the tendency to lose focus when monitor is getting swapped or the resolution changes.
That causes X11 exiting fullscreen and setting a lower resolution to fit desktop.
Pushing the window back to top, automatically fixes that and X11 enforces fullscreen again and new max resolution.
Additionally, XConfigure events are now checked and preferred over XGetWindowAttributes.
That saves several to hundreds μs per frame.
2021-05-29 22:19:19 +03:00
jdgleaver
484c4ad51e
Add API extension for cores to override frontend fast-forward state
2021-05-13 13:16:37 +01:00
twinaphex
f84c6ec8cd
Use STRLEN_CONST where possible; and don't needlessly do strlen
...
twice
2020-10-02 20:57:29 +02:00
twinaphex
5f08605680
Refactor joypad drivers
2020-08-30 05:29:32 +02:00
twinaphex
ebd62ecd78
Cleanups
2020-07-18 14:01:35 +02:00
twinaphex
9f9d59f2be
Cleanups
2020-07-17 16:46:00 +02:00
twinaphex
1fb77c43a3
(X11) Split up X11 context into two - GL and Vulkan
2020-07-17 14:15:30 +02:00
twinaphex
105e135e48
Cleanup
2020-07-17 01:20:31 +02:00
Bernhard Schelling
2226226663
Add missing header (for non griffin builds)
2020-07-11 23:02:18 +09:00
twinaphex
ad1aa59ce1
Cleanup != NULL comparisons
2020-05-19 21:15:06 +02:00
twinaphex
252bb3a905
(GLX) Fixes fastforwarding issues
2020-03-09 19:13:43 +01:00
twinaphex
c007b68e6b
(GLX) GLX OML was unstable with threaded video - remove it -
...
also put SwapInterval first instead of SwapIntervalEXT - this
makes fastforwarding work on Intel iGPUs
2020-03-09 18:37:20 +01:00
twinaphex
c5fc9cf5ce
(X ctx) Move two static global variables to struct
2020-03-07 18:28:53 +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
68664fdf1d
update_title - we don't need video_info
2020-03-06 22:11:44 +01:00
twinaphex
4aae293e3d
Remove is_shutdown from check_window
2020-03-06 20:29:31 +01:00
twinaphex
0ef1b342e4
settings Cleanups
2020-03-02 20:10:24 +01:00
twinaphex
1b0ab1c05f
Cleanups
2020-02-21 07:34:53 +01:00
Rinnegatamante
02c35441d6
Revert to old x context.
2019-10-16 18:29:17 +02:00
Rinnegatamante
d1a74e1b96
Fix for crash on Linux.
2019-10-15 09:07:15 +02:00
LazyBumHorse
907bea6abb
destroy leaked context
2019-08-12 23:05:44 +02:00
LazyBumHorse
010df00d74
workaround for Mesa crash when trying unsupported OpenGL versions
...
also fixes attribs sometimes being garbled
2019-08-12 21:08:22 +02:00
Brad Parker
db53e54b15
cleanup
2019-08-07 14:46:47 -04:00
Brad Parker
b97069aa6d
opengl: remove unnecessary second check for requested version at the end, add ES1/2 version checks when built with ES3, add 3.1/3.0 version checks
2019-08-07 12:24:24 -04:00
Brad Parker
1c1db0a7de
opengl: add missing 4.x versions to try, fail early if requestion version does not work
2019-08-06 17:53:15 -04:00
Brad Parker
7479245875
opengl: loop through highest available versions to find a working one, only do hwapi check on glx/wgl for now
2019-08-05 10:46:17 -04: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
1d6bae7b35
(Linux) fix --disable-overlay
2019-07-10 05:43:05 +02:00
LazyBumHorse
c20c67bd3a
proper shader compatibility checks
...
- move shader flags from the video drivers to the context drivers
- rework config_load_shader_preset() from configuration.c into retroarch_load_shader_preset() in retroarch.c with proper compatibility check
- implicitly call retroarch_load_shader_preset() in retroarch_get_shader_preset() once per core/content life cycle
- use video_shader_is_supported() instead of video_driver_test_all_flags() where appropriate
- remove GFX_CTX_FLAGS_NONE because it is meaningless
2019-06-18 13:46:41 +02:00
LazyBumHorse
692dc9f6a9
refactor shader checks affected by last commit and more:
...
- gl.c: refactor backend fallback into more general gl2_get_fallback_shader_type
- d3d9-12, gl_core, gx2_gfx, gl, vulkan: more consistent shader init and `set_shader` behavior
- configuration.c: remove check_shader_compatibility
- shader_glsl.c, shader_gl_cg.c: use `video_shader_get_type_from_ext`
- shader_gl_cg.c: add shader type check with fallback to stock like in shader_glsl.c
- menu_shader.c: use `enum rarch_shader_type` instead of `unsigned`
- video_shader_parse.c: add `video_shader_to_str` for easier logging
- remove `type` from `struct video_shader`, which was always set to CG and wrongly used in lang_process.cpp's `slang_process()` (has no further consequences because the code is unused)
2019-06-18 13:44:19 +02:00
twinaphex
59b45f7812
Start making HAVE_OPENGL_CORE independent
2019-04-24 03:23:57 +02:00
twinaphex
04d062b3d4
(MSVC2003) Enable HAVE_OPENGL1; make HAVE_OPENGL1 independent from
...
HAVE_OPENGL
2019-04-22 22:48:23 +02:00
Themaister
ecc7bc0cf2
Fix compile error and flag errors on X/Wayland.
2019-03-13 18:27:44 +01: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
Brad Parker
4f0d61a2ac
update copyright
2019-02-22 19:13:36 -05:00
twinaphex
158a442036
Add further HAVE_OPENGL1 support
2019-02-17 10:42:16 +01: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
twinaphex
098e62067e
Small cleanups
2018-11-26 13:37:35 +01:00
Alfredo Monclus
599ed980c6
Fix linux icon ( #7282 )
2018-09-22 13:37:22 -04:00
Alfrix
244b3bed3d
New 16x16 icon
2018-09-22 12:14:18 -03:00
twinaphex
3f8e3547f4
(GLX) swap_control_tear should now be implemented and working
2018-09-12 04:17:41 +02:00