Commit Graph

168 Commits

Author SHA1 Message Date
twinaphex 0923985516 (GL/WGL) This regression caused cores that required GL to fail
because it would try to erroneously load GLESv2.dll instead of
OpenGL32.dll
2020-01-09 19:26:53 +01:00
twinaphex 063986a4b3 (ANGLE) Angle gets separate EXE name 2020-01-04 19:05:23 +01:00
twinaphex 3e1f56d57f Change function signature of win32_has_focus 2020-01-04 15:49:23 +01:00
twinaphex 91baea201a Change function signature of win32_show_cursor 2020-01-04 15:40:02 +01:00
driver1998 105fadd668 [ANGLE] Add HAVE_ANGLE 2019-12-06 15:43:19 +08:00
driver1998 7cbdd845ad [Win32] Add ANGLE context 2019-12-06 13:24:17 +08:00
Rinnegatamante 453781af9c Graceful switch between video drivers. 2019-10-03 17:45:59 +02:00
twinaphex 302e2fdc53 Move show memory details outside of the video context driver and
into retroarch.c - avoid lots of code duplication
2019-09-21 07:49:33 +02:00
twinaphex 04f9b81fed Cut down on some unnecessary wrapper functions 2019-08-29 00:02:50 +02:00
twinaphex 3a7515c82f Cut down on code duplication 2019-08-28 23:58:15 +02:00
twinaphex 01cb2b8d44 Cleanup 2019-08-28 23:55:57 +02:00
LazyBumHorse f51e50a423 fix logging on Windows sometimes not being null-terminated 2019-08-15 13:39:19 +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 7b96ee1a31 windows buildfix 2019-08-06 22:01:49 -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
orbea e13ec54dc6 Fix --disable-overlay. 2019-07-21 10:26:42 -07:00
twinaphex 09f5d2c95d Fix compilation when configuring with --disable-overlay 2019-07-10 05:39:50 +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
twinaphex ee3208ac39 Integrate video_driver.c into retroarch.c 2019-06-17 15:10:22 +02:00
LazyBumHorse a6f042b320 wgl_ctx: set GFX_CTX_FLAGS_SHADERS_SLANG for glcore 2019-06-01 21:21:45 +02:00
twinaphex 74388d8490 Remove string_concat 2019-05-10 18:05:58 +02:00
twinaphex 39eadbab6f Use string_concat in more performance critical areas 2019-04-30 21:17:51 +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
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
twinaphex 158a442036 Add further HAVE_OPENGL1 support 2019-02-17 10:42:16 +01:00
Brad Parker 5e177c75a5 add memory stats to more context drivers, use correct default variables for fps/stats/framecount/memory_show 2019-02-15 15:59:00 -05: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 e062b98088 Remove trailing blank lines.
find . -type f -exec sed -i '${/^[[:space:]]*$/d;}' {} \+
2019-01-17 19:39:38 -08: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 914df58d2e (WGL) Adaptive Vsync should work now for WGL 2018-09-12 03:59:25 +02:00
twinaphex 98b20d4e5d (GLX/WGL) Start implementing adaptive VSync (swap_control_tear) for GLX/WGL pt. 1 2018-09-12 02:42:24 +02:00
twinaphex 4738ef545c Change interval type to signed int 2018-09-12 00:08:13 +02:00
twinaphex bfdb75a30e Add ifdef 2018-09-09 01:28:09 +02:00
Themaister d338dac277 Only do mailbox emulation for fullscreen.
Too large impact on performance in Windowed mode.
2018-09-08 16:27:25 +02:00
Themaister f2cae17021 Vulkan: Try to avoid creating swapchains redundantly.
Win32: Only make resize events when needed.
Do not create swapchain unless necessary.
Deal better with Windows WSI workarounds.
2018-07-01 16:21:09 +02:00
twinaphex 542294900f (WinRT) More compilation fixes 2018-05-12 19:03:39 +02:00
Brandon Wright e049605359 Add refresh rate polling to Win32 >= Windows 7. 2018-04-15 19:33:38 -05:00
Brandon Wright 533f898132 Add get refresh rate context function. Implement for X11 and Wayland. 2018-04-15 17:56:12 -05:00
Brad Parker 614521b238 fix building on windows without dinput 2018-03-16 21:03:43 +00:00
twinaphex 16c1bd7a03 Create context get_api function 2018-03-01 21:16:54 +01:00
twinaphex 63ad668ff0 Add HAVE_DYNAMIC ifdefs 2018-01-24 02:12:58 +01:00
twinaphex 61ff51be2f Start using string_is_equal predominantly 2018-01-16 22:53:38 +01:00
twinaphex df3bb2e7e8 gfx_ctx_wgl_update_title - small cleanup 2017-12-31 13:54:34 +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
Themaister 75b84b4f94 Support pending swapchain creation. 2017-12-09 17:28:20 +01:00
Brad Parker bc4bbe79aa don't define UNICODE at all, we don't need it and it causes dinput problems (names are wchar_t) 2017-12-05 14:26:59 -05:00
Twinaphex b2d9bad3a2 Update wgl_ctx.c 2017-08-22 17:44:40 +02:00
twinaphex e065d70426 (WGL) Try to use wglSwapLayerBuffers first before resorting to SwapBuffers 2017-08-19 14:17:30 +02:00
twinaphex ae2435cf16 Silence some more C89_BUILD warnings 2017-08-12 18:15:26 +02:00
Brad Parker ff98730906 don't define UNICODE for msvc2005 2017-08-09 23:33:57 -04:00
twinaphex a4a027be67 Convert wgl_ctx into C - also take care of serious warning 2017-08-09 13:51:33 +02:00
twinaphex 9deeececf1 Turn win32_common and wgl_ctx into C++ 2015-11-11 20:07:06 +01:00
twinaphex 938dfa775a (D3D/GL) Try to use common code for both 2015-11-11 19:41:32 +01:00
twinaphex 8e08db3446 more buildfixes 2015-11-11 18:29:06 +01:00
twinaphex 3c5f4bd243 Move WndProc to win32_common.c 2015-11-11 18:26:10 +01:00
twinaphex 8f6deb9dac Pass function pointer to win32_window_init too 2015-11-11 18:22:39 +01:00
twinaphex b40baa6323 Move win32_window_init 2015-11-11 18:16:28 +01:00
twinaphex 65a9419522 Create win32_window_init 2015-11-11 18:15:21 +01:00
twinaphex e0720cd764 Add mon_id argument to win32_get_monitor_info 2015-11-11 17:47:56 +01:00
twinaphex 8f9218ab1b (Win32) Cleanups 2015-11-11 17:41:20 +01:00
twinaphex 0cb507886a Split up win32_monitor code to win32_common 2015-11-11 17:36:52 +01:00
twinaphex 0f9f8c248b (Win32) Refactor monitor code 2015-11-11 05:32:00 +01:00
twinaphex 9893be7849 (WGL) Buildfix 2015-10-23 07:59:53 +02:00
Monroe88 a2e4a39ecf (wgl_ctx) Also account for swap interval when setting fullscreen refresh rate 2015-10-21 18:57:06 -05:00
Monroe88 4afbd0682b (wgl_ctx) Set fullscreen mode refresh rate to video_refresh_rate 2015-10-19 19:44:28 -05:00
twinaphex ff59f92341 (Win32) Create win32_suppress_screensaver 2015-10-10 08:13:58 +02:00
twinaphex e986b9e42a Static code analysis cleanups 2015-09-29 17:35:28 +02:00
Alcaro dbccc4f4f0 Shut up some more warnings. 2015-09-06 16:07:26 +02:00
twinaphex 421e006297 (wgl_ctx.c) Cleanups 2015-09-05 14:38:55 +02:00
twinaphex 3e977034a7 (Win32) More buildfixes 2015-09-05 14:10:16 +02:00
twinaphex 43c8f282db (Gfx) Cleanups 2015-06-13 02:10:06 +02:00
twinaphex a81baed9e2 Move hw_render_callbakc to video driver state and take it out
of global state
2015-05-20 19:56:12 +02:00
twinaphex a3e14acaa3 Create win32_check_window 2015-04-10 09:36:03 +02:00
twinaphex b46c9cea87 Create win32_show_cursor 2015-04-10 09:30:18 +02:00
twinaphex 89bdccad4d (wgl_ctx.c) Fix warnings 2015-04-10 06:33:18 +02:00
twinaphex 3213baf452 Take out HAVE_EGL ifdefs in gfx_context_driver_t definition 2015-04-10 05:58:08 +02:00
twinaphex dc10606b23 Create win32_get_metrics 2015-04-09 05:19:29 +02:00
twinaphex 1f23338ca4 Move win32_common.c to gfx/common 2015-04-09 05:16:02 +02:00
twinaphex 16b7b454a9 Move gl_common.c to gfx/drivers 2015-04-09 04:57:17 +02:00
twinaphex 5e4647994b (Windows) Implement get_metrics for D3D and WGL context drivers 2015-04-08 22:06:33 +02:00
twinaphex fab39da46a (Gfx context) Implement get_metrics callback 2015-04-08 20:10:30 +02:00
twinaphex 03af36ba64 (WGL) Go through dylib_load 2015-04-08 19:52:15 +02:00
twinaphex 36b054506d Move window manager code to gfx/drivers_wm 2015-04-04 20:30:44 +02:00
Alcaro fbeec2f00e (WGL) Apparently HAVE_EGL can be defined on this platform... 2015-03-27 23:07:57 +01:00
aliaspider a43af8622d (windows) add a shader parameters popup windows. 2015-03-23 17:36:37 +01:00
twinaphex 2409da4afe global_get_ptr update pt. 3 2015-03-21 05:55:31 +01:00
twinaphex f130b00596 Updates pt. 3 2015-03-20 22:08:36 +01:00
twinaphex 3670ef2ac5 Go through driver_get_ptr to grab pointer to driver struct 2015-03-18 19:40:00 +01:00
twinaphex 00239a30d6 Create wrapper functions for passing a message to the runloop's
message queue
2015-03-15 02:47:23 +01:00
twinaphex 667a461c89 (Windows/Mouse) Wheel works now in normal mode - doesn't work in
grabbed mouse state (exclusive foreground mode)
2015-03-10 23:40:54 +01:00
twinaphex 9627117166 Take out fps_monitor_enable 2015-03-07 23:03:56 +01:00
twinaphex 795ef467ac Move msg_queue and nbio/http to runloop struct 2015-03-07 13:01:41 +01:00
twinaphex 13a391c165 Implement get_video_output_prev/get_video_output_next 2015-02-24 21:36:23 +01:00