twinaphex
91170722e6
Try to silence Coverity warning
2016-09-30 08:58:57 +02:00
twinaphex
b73d183c44
(Win32) Buildfix
2016-09-30 08:19:36 +02:00
twinaphex
28a96fbb05
Update GX/WIn32 builds
2016-09-30 06:39:47 +02:00
Twinaphex
03215a831f
Merge pull request #3690 from aliaspider/master
...
(3DS) add experimental font and menu_display drivers.
2016-09-29 21:33:08 +02:00
aliaspider
afd5e85a31
(3DS) add experimental font and menu_display drivers.
2016-09-29 20:14:12 +01:00
Brad Parker
b83d2529e2
break early if we run past the message length
2016-09-29 12:25:20 -04:00
twinaphex
32220c042b
(video_driver.c) Style nit
2016-09-29 10:27:49 +02:00
twinaphex
be81edad84
Create path_get
2016-09-29 08:23:41 +02:00
Francisco José García García
f6a7aa95e7
(VITA) Fix crash in gambatte
2016-09-29 00:20:14 +02:00
aliaspider
5db13323f6
(3DS) create gfx/common/ctr_common.h.
...
remove depthbuffer.
use vramalloc.
2016-09-28 20:59:54 +01:00
Twinaphex
bcc864d48f
Merge pull request #3681 from loganmc10/patch-3
...
Yet another fix for glUniformMatrix4fv
2016-09-28 19:56:02 +02:00
aliaspider
dc16477c46
(3DS) fix tearing, the displayed framebuffer was being set to the
...
currently selected drawbuffer.
2016-09-28 18:34:38 +01:00
aliaspider
8266a423cd
(3DS) update for latest ctrulib.
2016-09-28 18:09:17 +01:00
Logan McNaughton
d360bf17d5
Yet another fix for glUniformMatrix4fv
...
This should fix fullscreen toggling/context resets.
2016-09-28 08:18:32 -06:00
aliaspider
4ebe84d89c
(3DS) use Makefile.commmon for non griffin builds
2016-09-28 15:01:46 +01:00
Twinaphex
b7ab9a1581
Merge pull request #3675 from frangarcj/master
...
(Vita) Add get framebuffer
2016-09-28 00:53:40 +02:00
Logan McNaughton
01a03abdc5
Fix glUniformMatrix4fv call
2016-09-27 16:03:54 -06:00
Francisco José García García
8a6625753d
(Vita) Add get framebuffer
2016-09-27 23:39:24 +02:00
Logan McNaughton
0d3e9875b1
Only call glUniformMatrix4fv if needed
2016-09-27 08:56:36 -06:00
Twinaphex
7672288fcd
Revert "Only call glUniformMatrix4fv if needed"
2016-09-27 02:59:58 +02:00
Logan McNaughton
fa48e95946
Only call glUniformMatrix4fv if needed
2016-09-26 14:24:27 -06:00
twinaphex
b3ec735e75
Silence some more scan-build warnings
2016-09-25 15:25:20 +02:00
Logan McNaughton
4f002f2316
Specify EGL_DEPTH_SIZE for emscripten
...
Some drivers require it to provide a depth buffer.
2016-09-24 19:53:45 -06:00
twinaphex
764a4319a0
(shader_glsl.c) Continue with iteration if pass is NULL
2016-09-24 17:04:49 +02:00
twinaphex
b5416e4041
Change false to 0
2016-09-24 17:04:21 +02:00
twinaphex
5b5ad03ec3
Attempt to fix Coverity warnings
2016-09-24 17:04:01 +02:00
twinaphex
83be6daa93
Try to prevent input driver from being set with Emscripten EGL context driver if HAVE_SDL2 is defined
2016-09-24 05:57:02 +02:00
radius
f58f7a5923
Revert "Make emscripten_egl default context for emscripten"
...
fixes gamepad support. It seems it only works when we use the SDL2 video context
This reverts commit 1177edf825
.
2016-09-23 22:38:37 -05:00
Francisco José García García
e654c39944
(VITA) Fix utf8
2016-09-23 21:27:06 +02:00
twinaphex
2d11ea71cc
Move runloop_fullpath to paths.c
2016-09-23 03:39:44 +02:00
Logan McNaughton
1177edf825
Make emscripten_egl default context for emscripten
2016-09-22 15:22:08 -06:00
twinaphex
6d702f3538
Remove unused buf_fps variable
2016-09-22 21:51:22 +02:00
twinaphex
0d49ed5877
drm_ctx.c - remove dead assignment
2016-09-22 20:56:42 +02:00
twinaphex
8d9eccfd65
(xvideo.c) Prevent null pointer dereferences for geom variable
2016-09-22 20:54:06 +02:00
Twinaphex
a69b958a1f
Merge pull request #3623 from frangarcj/master
...
(VITA) New font renderer with stb by default
2016-09-20 13:22:59 +02:00
frangarcj
608d13c321
(VITA) Add some default fonts
2016-09-20 10:58:14 +02:00
hizzlekizzle
9fe3bd9b62
add 9:16 AR and fix typo
...
9:16 is useful for people with widescreen monitors running in portrait mode. I replaced 4:4 with it because 4:4 was redundant with 1:1 anyway, and I fixed the double-close-parentheses typo in the 1:1 PAR's DAR string.
2016-09-19 08:31:08 -05:00
frangarcj
bc90dd2927
(VITA) Another UTF8 Fix
2016-09-19 14:17:19 +02:00
frangarcj
ab0dad99fc
(VITA) Remove old font driver
2016-09-19 14:15:13 +02:00
frangarcj
d46a40e3c4
(VITA) USE STB FONT
2016-09-19 14:14:11 +02:00
twinaphex
88c2ec5819
Prevent this error (caught with SANITIZER=undefined)
2016-09-18 22:39:18 +02:00
Higor Eurípedes
c08650f1f9
Remove trailing whitespace
2016-09-17 21:20:27 -03:00
Higor Eurípedes
d4305d65d9
(gl) Fix gl_check_error()
...
gl_check_error() was leaking memory and the error message was never
returned to the calling context.
2016-09-17 21:19:57 -03:00
twinaphex
12949420b6
(Windows) Buildfix
2016-09-17 15:07:45 +02:00
twinaphex
6002fd9f2a
(shader_vulkan.cpp) Nits
2016-09-16 17:50:57 +02:00
twinaphex
99aae8537b
Use string_is_equal/stdstring.h
2016-09-16 17:33:18 +02:00
twinaphex
cb17c0f493
Style nits
2016-09-16 13:31:18 +02:00
Bastien Nocera
5afdd35e54
x11: Only call out to xdg-screensaver when D-Bus failed
2016-09-16 13:03:48 +02:00
Bastien Nocera
a061b4a801
x11: Implement xdg-screensaver uninhibition
2016-09-16 13:03:37 +02:00
Bastien Nocera
e563bd5512
x11: Flatten D-Bus (un)inhibit functions
...
Instead of nesting, try to exit as soon as possible in case of errors.
Also make sure to tell the caller whether the call succeeded and a
fallback should be attempted.
2016-09-16 12:59:16 +02:00
Bastien Nocera
297c9a8613
x11: Reset dbus_connection global variable on exit
...
To ensure that the state of the variable is correct. This won't be
needed if X11 is never reinitialised.
2016-09-16 12:34:15 +02:00
Bastien Nocera
6ab7fab326
x11: Lower the severity of D-Bus not being accessible
...
As there is a fallback through xdg-screensaver, no need to make this any
more important than a log message.
2016-09-16 12:32:22 +02:00
Bastien Nocera
65fa874c3a
x11: Rename function fetching the D-Bus connection
...
You'd expect a "get" function to return the variable in question. This
doesn't, and simply sets a global variable.
2016-09-16 12:32:15 +02:00
Alcaro
f6b7fc17f6
Those checks aren't needed.
2016-09-16 00:45:00 +02:00
Alcaro
9485263555
Fix implicit strstr
2016-09-15 21:16:25 +02:00
Alcaro
1964491e5f
Fix Linux-MinGW build
2016-09-15 20:54:14 +02:00
twinaphex
7d5b9f172a
Cleanups
2016-09-14 22:46:29 +02:00
twinaphex
1b46f3c344
Nits
2016-09-14 15:58:53 +02:00
twinaphex
f87dbe7946
Style nits/cleanups
2016-09-14 15:58:03 +02:00
twinaphex
ca673b4fc8
C89_BUILD fixes etc.
2016-09-14 15:56:14 +02:00
Twinaphex
09ccef1684
Merge pull request #3547 from nguillaumin/wip-screensaver-dbus
...
WIP: Fixes #2026 Screensaver suspend on Linux via Dbus
2016-09-14 15:48:43 +02:00
twinaphex
1b9a067bcc
Move code to apple_compat.h
2016-09-14 14:10:39 +02:00
twinaphex
d2dbe63b2b
Cleanup
2016-09-12 18:37:32 +02:00
twinaphex
d4be224ea6
Header include cleanups
2016-09-12 18:34:57 +02:00
twinaphex
b4d75fbafd
Cleanups
2016-09-12 17:29:01 +02:00
twinaphex
93d98069b2
Cleanups
2016-09-12 16:45:26 +02:00
twinaphex
1fea80c630
Another header cleanup
2016-09-11 18:49:38 +02:00
twinaphex
d3f7bf8527
Move video_state_python to gfx/drivers_tracker
2016-09-11 17:59:10 +02:00
twinaphex
22022f8133
Cleanup
2016-09-11 17:55:46 +02:00
twinaphex
e427a2d2fa
Move enums to gfx/video_thread_wrapper.c
2016-09-11 17:42:53 +02:00
twinaphex
88c7976104
Rename CMD_NONE to CMD_VIDEO_NONE
2016-09-11 17:40:26 +02:00
twinaphex
4b63af59a2
video_thread_wrapper.h - get rid of some ifdefs
2016-09-11 17:24:22 +02:00
twinaphex
d4797781ea
(GX) Buildfix
2016-09-11 16:44:29 +02:00
twinaphex
3cf24afc44
(CTR) Buildfix
2016-09-11 16:43:56 +02:00
twinaphex
6d7602d47f
Fix C89_BUILD
2016-09-11 16:43:28 +02:00
twinaphex
7290c7e3c2
(Emscripten) Buildfix
2016-09-11 16:39:13 +02:00
Alcaro
0720d5ad77
Kill warning
2016-09-11 16:38:36 +02: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
606e37fcbd
Cleanups
2016-09-11 15:07:07 +02:00
twinaphex
7ac1ed7e10
Cleanups
2016-09-11 14:54:34 +02:00
twinaphex
202e3e796e
Get rid of more general.h includes
2016-09-11 14:46:53 +02:00
nguillaumin
c69c488fdf
Address code review comments
2016-09-09 18:08:54 -07:00
twinaphex
164d3b034c
Get rid of OSX_PPC
2016-09-09 15:56:56 +02:00
Nicolas Guillaumin
05df632bd8
WIP: Fixes #2026 Screensaver suspend on Linux via Dbus
...
One some systems (tested with Gnome 3 on Arch Linux) the current method
of using `xdg-screensaver` to suspend the screensaver does not work.
Instead, using DBus to issue an `Inhibit` request is recommended.
The request returns a cookie that needs to be re-used to un-inhibit the
screensaver later. Additionally if the DBus connection is closed the
current inhibition is discarded. Thus, the DBus connection needs to stay
connected for the duration of the screenshot inhibition.
The code is heavily inspired from the [SDL 2.x
code](http://hg.libsdl.org/SDL/file/default/src/core/linux/SDL_dbus.c#l172 ).
I didn't call the SDL 2 code though since this it to fix the issue with
the GL driver, and I assume one would want to have screensaver inhibited
even when SDL 2 is not available (but GL is).
I've set "WIP" because:
* I haven't done C in a long time so my code is probably not great
* There's a dependency on DBus which I don't know is acceptable or
not
* I've put my code where I could to check it works, but `x11_common` may
not be the best place
* The code need and "init" and "deinit" kind of method as it needs to
initialise the DBus connection, and on deinit close it properly. I've
used `x11_connect` and `x11_window_destroy` but they don't sound like
the best choices.
* I'm a bit unclear as to what happens when "suspend screensaver" is
ticked on/off in the menu. This doesn't seem to call
`x11_suspend_screensaver` everytime, so I'm not sure if there's a hook
somewhere (as disabling screensaver suspend in the menu should cause a
DBus unhinibit request to be sent).
* Should I just call the SDL 2.x code (meaning that the GL driver would
depend on SDL 2.x at runtime)?
So, first of all are you ok with the approach, and if yes I'd gladly get
feedback about the code, how to architecture it and the best place to
put it.
Thanks!
2016-09-08 15:23:41 -07:00
twinaphex
db6171676a
Use retro_assert everywhere
2016-09-08 11:59:44 +02:00
twinaphex
b43f786f89
Cleanups
2016-09-08 08:15:40 +02:00
twinaphex
8a9ae155a2
Cleanups
2016-09-08 08:10:31 +02:00
twinaphex
7a36ea7d1c
Silence warnings
2016-09-08 06:11:02 +02:00
Twinaphex
ac2676b25f
(glcapabilies.h) Add HAVE_CONFIG_H ifdef
2016-09-08 05:51:20 +02:00
Francisco José García García
04b5dbdb5c
(VITA) Silence texture load
2016-09-07 23:53:20 +02:00
Alcaro
37a907eb51
These aren't needed.
2016-09-07 14:40:10 +02:00
Alcaro
3f105fe71f
Perform evil experiments (run this driver in a completely different program)
2016-09-07 14:30:27 +02:00
twinaphex
cc6fe3159f
Some comments
2016-09-07 14:12:40 +02:00
twinaphex
ab325e54a1
gfx/video_driver.h - add comments
2016-09-07 13:55:46 +02:00
twinaphex
e880a3b248
vfilter is for Wii/Gekko only
2016-09-07 13:54:01 +02:00
Alcaro
e243614db8
Create half-broken XShm driver, to perform evil experiments on
2016-09-07 13:39:00 +02:00
Brad Parker
81090720c8
context must be current, not released, to use GL
2016-09-06 21:47:08 -04:00
mudlord
b1833c2d52
account for if people have core id files but not the actual cores.
2016-09-07 09:44:07 +10:00
twinaphex
245a65a0d7
Change this
2016-09-07 01:12:35 +02:00
twinaphex
642e46779b
Cleanups
2016-09-06 23:59:43 +02:00
twinaphex
ffcf96dd24
Add config.h includes
2016-09-06 23:47:05 +02:00
twinaphex
e6a114a95a
Create gfx/video_frame.c
2016-09-06 23:41:09 +02:00
twinaphex
50bd1c38be
Header cleanup
2016-09-06 23:34:55 +02:00
twinaphex
226460530c
Header include cleanup
2016-09-06 23:34:27 +02:00
twinaphex
671063aec2
Silence warnings
2016-09-06 23:17:16 +02:00
dankcushions
cdc4bff3fb
Fix build on Raspberry Pi (3)
2016-09-06 21:54:53 +01:00
mudlord
f3a0d8518e
mudlord is a fucking clot/hack and needs to be shot.
...
Should have tested on other drivers than Nvidia Windows.
2016-09-07 05:56:07 +10:00
twinaphex
6f47289ba6
Start adding HAVE_CONFIG_H to gfx/drivers_context
2016-09-06 19:39:02 +02:00
Alcaro
23dc89168a
are those HAVE flags not set up there or something?
2016-09-06 19:21:33 +02:00
twinaphex
c3ba0ba4e9
Revert "Refactor core_system_info_* functions"
...
This reverts commit f637805c9e
.
2016-09-06 08:38:26 +02:00
Brad Miller
94be5a8651
Update modern_pipeline_xmb_ribbon.glsl.vert.h
...
nit
2016-09-06 15:58:37 +10:00
mudlord
d77759cc1b
change
2016-09-06 15:45:57 +10:00
mudlord
73a1cd4631
greatly optimized modern vertex shader for ribbon.
2016-09-06 15:42:16 +10:00
twinaphex
f637805c9e
Refactor core_system_info_* functions
2016-09-06 07:08:38 +02:00
twinaphex
82d82110ae
Merge system.h with core.h
2016-09-06 06:11:54 +02:00
twinaphex
3e9df72123
Try to fix ARM build
2016-09-06 03:14:20 +02:00
twinaphex
075aea2289
Header include cleanups
2016-09-06 00:56:00 +02:00
twinaphex
266a06ffb1
Revert "Expose GPU Hard Sync for GLES 3 too"
...
This reverts commit a74813c9ea
.
2016-09-05 21:43:02 +02:00
twinaphex
bd45d7a707
gl_capabilities.c - cleanups
2016-09-05 21:25:38 +02:00
twinaphex
67c2965612
OpenGL ES should not reach this code
2016-09-05 21:22:38 +02:00
twinaphex
a74813c9ea
Expose GPU Hard Sync for GLES 3 too
2016-09-05 21:16:30 +02:00
twinaphex
280aa831b5
Remove verbosity.h header dependency on gl_capabilities.c
2016-09-05 21:12:44 +02:00
twinaphex
43edd76736
Add headers
2016-09-05 21:09:21 +02:00
twinaphex
86d2a36407
(Win32) Buildfixes
2016-09-05 18:43:32 +02:00
twinaphex
acd4dd527b
Header include cleanups
2016-09-05 18:31:32 +02:00
twinaphex
f0702ac72c
(PS3) Buildfix
2016-09-05 07:59:26 +02:00
twinaphex
f30deb9cd0
Header cleanup
2016-09-05 07:47:11 +02:00
twinaphex
e6ef3662ac
Header include changes
2016-09-05 07:44:17 +02:00
twinaphex
76732249b6
Cleanups
2016-09-05 07:30:44 +02:00
Twinaphex
ef43a573a3
Silence warnings
2016-09-05 07:28:55 +02:00
twinaphex
1edaa20029
header cleanups for gl_capabilities.c
2016-09-05 07:26:32 +02:00
twinaphex
1bed2dc3c4
Buildfix
2016-09-05 07:22:44 +02:00
twinaphex
1a241fa9ce
Rewrite this
2016-09-05 07:22:44 +02:00
twinaphex
7af3b79416
Create gl_capabilities.c/gl_capabilities.h
2016-09-05 07:04:56 +02:00
Brad Parker
0eb1777a1f
remove extra semicolons
2016-09-03 10:30:21 -04:00
twinaphex
064f74825a
CXX_BUILD buildfix
2016-09-01 18:26:01 +02:00
twinaphex
467451fccc
Cleanup more header includes
2016-09-01 18:18:55 +02:00
twinaphex
ddb9cff2af
More header include cleanups
2016-09-01 18:10:59 +02:00
twinaphex
e106fd4374
Get rid of more general.h includes
2016-09-01 18:01:41 +02:00
twinaphex
b7fd9bef60
Add configuration.h
2016-09-01 17:34:24 +02:00
twinaphex
3a72479699
Add retro_miscellaneous.h to gfx/video_filter.c
2016-09-01 17:08:13 +02:00
twinaphex
aff2812fde
Try to get rid of double definition of type
2016-09-01 06:08:06 +02:00
twinaphex
815c0eb3ee
Remove header includes
2016-09-01 05:46:10 +02:00
twinaphex
562c1e996c
Get rid of more header includes
2016-09-01 05:38:26 +02:00
twinaphex
a608f2350a
(Freetype) Add another fallback font
2016-09-01 02:09:15 +02:00
twinaphex
47eef317bb
(video filters) Update exp_generic_rgb565
2016-09-01 02:03:43 +02:00
Alcaro
d1b7cdef57
Kill some signed integer overflow warnings
2016-08-31 23:57:06 +02:00
twinaphex
12cfb3bfce
Rewrite gfx_ctx_x_make_current a bit and turn it into a
...
static function
2016-08-31 15:24:56 +02:00
twinaphex
aa15fb3f91
Update remaining video context drivers
2016-08-31 15:02:07 +02:00