Commit Graph

35 Commits

Author SHA1 Message Date
ts-korhonen
a1955a7698 opengl: more error handling
Show message box on fail.
Enable debug output only when logfile is defined; performance optimization.
Fail if reported opengl version is less than 3.0 or errors are generated
after context is created; fixes some crashes on unsupported hardware or
faulty drivers.
2021-12-07 20:04:56 +02:00
ts-korhonen
40abfc1b5e Lower required OpenGL version from 3.3 -> 3.0 2021-12-04 21:26:55 +02:00
OBattler
46807540ed Rewritten renderer blitting, fixes flickering when inversion or grayscale is used. 2021-10-06 02:26:30 +02:00
OBattler
03ed12a966 Various blitter fixes, should fix 8088MPH Kefrens segmentation fault. 2021-09-27 04:32:08 +02:00
ts-korhonen
bce7c07880 Make OpenGL 3.3 renderer use only one memcpy 2021-09-14 08:56:26 +03:00
OBattler
96faa28eeb Removed the useless y1 and y2 parameters from the renderers' blit functions (and other places). 2021-09-13 23:19:10 +02:00
OBattler
7473a1c4b9 Fixed the OpenGL 3.3 renderer. 2021-09-13 21:28:44 +02:00
OBattler
13dc05cfd2 Removed the useless double-buffering in video/video.c, improves performance and reduces RAM usage. 2021-09-13 21:02:15 +02:00
ts-korhonen
17ad59094f win_opengl: Add logging 2021-07-05 23:16:00 +03:00
ts-korhonen
ed86f69c85 Explicitly initialize COM library in main and opengl threads, hopefully fixing filedialog issues. 2021-06-17 19:17:21 +03:00
ts-korhonen
1bb63e232a win_opengl: small change to last fix, no need to subtract twice. 2021-05-09 04:47:32 +02:00
ts-korhonen
0ded806fe9 win_opengl: Fix out-of-bounds texture transfer when y2 is bigger than height. 2021-05-09 04:47:32 +02:00
ts-korhonen
dd65a80b19 Add menu option for filter method to use when scaling video. 2021-05-01 20:49:23 +03:00
ts-korhonen
7b227b3ec1 win_opengl: Add fallback feature for gpus without ARB__buffer_storage extension. 2021-05-01 10:18:11 +03:00
ts-korhonen
a5910189f3 win_opengl: use persistent buffer for pixel transfer 2021-04-29 13:48:46 +03:00
ts-korhonen
147175677d win_opengl: Fix main window staying inactive when clicked. 2021-04-26 09:38:35 +03:00
ts-korhonen
b90601256d win_opengl: Added handling of initialization failures. 2021-04-24 01:01:45 +03:00
ts-korhonen
2bf6c7aa11 win_opengl: UI for options and add them to config. Reloading changed options at runtime. Improved framerate limitter. 2021-04-23 16:09:45 +03:00
ts-korhonen
579e221a76 win_opengl: Protect resize_info with mutex. 2021-04-22 01:15:10 +03:00
ts-korhonen
3088c6c26f win_opengl: (WIP)UI for options. Add comments to help find conditionals that put opengl in dev_branch. 2021-04-21 23:08:32 +03:00
ts-korhonen
58d2f6e3ff win_opengl: Optimize message handling by replacing SDL_PollEvents with basic win32 message pump. 2021-04-21 23:08:32 +03:00
ts-korhonen
b7be825ba7 win_opengl: Fix MSVC build errors and warnings 2021-04-17 00:12:49 +03:00
ts-korhonen
7a83b463c2 win_opengl: Split shader loading to it's own file. 2021-04-16 19:44:31 +03:00
ts-korhonen
825dcd9fe4 win_opengl: Add sync options that would later be settable in UI. 2021-04-16 18:36:59 +03:00
ts-korhonen
afc5122a50 win_opengl: Add loading shaders from a file and few common uniforms.
plat.h,win.c: Add missing const
2021-04-15 16:38:23 +03:00
ts-korhonen
6919acd665 win_opengl: add routing for buttondowns to fix mouse capturing with recent changes to master 2021-04-13 23:20:58 +03:00
ts-korhonen
0fdada4119 win_opengl: Implemented full screen stretch options. 2021-04-13 15:56:27 +03:00
ts-korhonen
22f91f639a win_opengl: Fix unfocused full screen causing bell sound on input. 2021-04-13 01:25:42 +03:00
ts-korhonen
dfd21b25af win_opengl: more fullscreen input routing 2021-04-12 22:21:28 +03:00
ts-korhonen
522490f913 win_opengl: added basic full screen with input routing 2021-04-12 17:01:58 +03:00
ts-korhonen
3c328d93b5 win_opengl: fix resizing as child window 2021-04-12 01:45:23 +03:00
ts-korhonen
42d18fe165 win_opengl: add windows message hook to relay input, hide cursor on capture, unify method naming 2021-04-12 00:58:04 +03:00
ts-korhonen
fe3e1d05de win_opengl: Get window size from resize instead of enable. Use noactivate window style to keep focus on parent window. 2021-04-11 22:29:00 +03:00
ts-korhonen
39268e88ef Add some documentation to win_opengl.c 2021-04-10 18:15:26 +03:00
ts-korhonen
f315145c7d OpenGL rendering component. First iteration, WiP. 2021-04-10 18:15:26 +03:00