Commit Graph

2493 Commits

Author SHA1 Message Date
twinaphex
8cbeeab39f Create unique names for context driver static functions - needed
for Griffin builds
2014-10-08 18:09:01 +02:00
twinaphex
f30042ff03 If video driver/video context driver doesn't support windowed mode,
then treat RARCH_CMD_FULLSCREEN_TOGGLE as no-op
2014-10-08 17:30:05 +02:00
twinaphex
bcd5f8aa5b Add has_windowed to video driver and graphics context driver 2014-10-08 17:23:02 +02:00
twinaphex
f9da3f37c4 Avoid usage of term 'emulator' 2014-10-08 04:56:09 +02:00
aliaspider
0089087777 stop using thr->frame.within_thread for thread_set_osd_msg.
TODO: find a more reliable way to determine if the calling thread is the
video driver thread or not.
2014-10-08 03:02:04 +01:00
Twinaphex
931bc28236 (Null gfx context driver) Prevent excess elements when HAVE_EGL is not defined 2014-10-07 16:49:56 +02:00
twinaphex
76d24cc42b (GL) Get rid of some unnecessary conditionals now that context driver
is at the very least set to a null driver
2014-10-07 14:33:45 +02:00
twinaphex
3603a56c01 Add null gfx context driver 2014-10-07 14:31:10 +02:00
Mike Robinson
b5bd6f8d20 Fix segfault on invalid graphics context driver
Last element of gfx_ctx_drivers[] is NULL, don't dereference it.
2014-10-07 04:36:39 +01:00
twinaphex
587cacb644 (GL) Don't pass shader pointer variable around 2014-10-06 17:08:42 +02:00
twinaphex
8dc4f66c06 Check if gl->ctx_driver is non-NULL first in gl_frame 2014-10-06 16:59:21 +02:00
twinaphex
156ffc2c41 (GL) Don't use local pointer variable for ctx_driver 2014-10-06 16:48:06 +02:00
aliaspider
a30ca8a082 (Lakka) fix texture loading when video_threaded is set to 'true' 2014-10-06 02:41:53 +01:00
twinaphex
4cf03811ea (GLSL) Make gl_glsl_num more robust 2014-10-04 22:24:14 +02:00
SuperrSonic
482854f217 Connect Deflicker to config 2014-10-04 01:09:30 -04:00
SuperrSonic
7a936f9719 Removed specific viWidth for 16:9 mode, not needed anymore 2014-10-03 20:31:52 -04:00
Twinaphex
1ea548d068 Merge pull request #1084 from aliaspider/master
(PSP) fix aspect ratio/viewport/rotation settings.
2014-10-04 00:45:29 +02:00
aliaspider
9985bbf30f (PSP) fix aspect ratio/viewport/rotation settings. 2014-10-03 23:22:44 +01:00
twinaphex
6214e8e211 (360) Build fixes 2014-10-03 22:26:29 +02:00
Twinaphex
d029362dd7 (GL) Make gl_alive more robust 2014-10-03 17:17:18 +02:00
twinaphex
71fd3aa6b4 (Android) Build fix 2014-10-03 16:34:15 +02:00
twinaphex
3f900424ca (GL) Minor tweaks 2014-10-03 14:16:34 +02:00
twinaphex
7a6ee6a300 Get rid of MODE_MENU_HD too -g_extern.lifecycle_state can now
be used for 'injecting' button presses (i.e. libretro button presses
and/or meta button presses)
2014-10-02 21:57:01 +02:00
twinaphex
c1a75ec68a Get rid of MODE_MENU_WIDESCREEN 2014-10-02 21:45:09 +02:00
twinaphex
54bfe360c6 Move ifndef HAVE_GCMGL checks outside of gl.c and into
shader_gl_cg.c - also implement stub glGenerateMipmapOES
for GCMGL
2014-10-02 21:09:34 +02:00
twinaphex
a844c3997a (GL) Get rid of some more _func macros 2014-10-02 15:43:11 +02:00
twinaphex
ca004c370c (HLSL) Cleanup hlsl_filter_type too 2014-10-02 15:25:51 +02:00
twinaphex
4c6fa4f059 (Cg/GLSL) Cleanups to filter_type implementation 2014-10-02 15:25:01 +02:00
twinaphex
e7e441d32d Rename shader_cg.c to shader_gl_cg.c 2014-10-02 15:19:21 +02:00
twinaphex
b22cf18228 (GL/Shaders) Put fixed-function vertex/matrix coord code inside shader
backend files as fallback routines
2014-10-02 15:17:21 +02:00
twinaphex
53c7bf65ed Turn fixed-function vertex coord/matrix code into macros 2014-10-02 14:50:24 +02:00
twinaphex
aed7afb31d Move gl_shader_set_coords from gl.c to gl_common.c 2014-10-02 14:20:50 +02:00
twinaphex
7e2dd769e9 (GL) Simplify gl_shader_set_coords 2014-10-02 14:13:08 +02:00
twinaphex
59be30825c (GL) Do away with most of the checks for 'shader' now that shader
will never be NULL
2014-10-02 14:05:11 +02:00
twinaphex
4fbbb8aa2f (GL) Always have gl->shader point to a valid driver (including nullshader) 2014-10-02 13:47:45 +02:00
twinaphex
64c2305017 Add 'ident' to shader driver - add shader context functions 2014-10-02 13:42:40 +02:00
twinaphex
6c675e6580 Create gfx/gl_common.c 2014-10-02 13:32:42 +02:00
twinaphex
b2f6a025c8 Create shader_gl_common.c 2014-10-02 13:27:35 +02:00
twinaphex
6b054da299 Rename shader_common to shader_context 2014-10-02 13:21:45 +02:00
twinaphex
75be6ccec9 (GL) Turn gl_set_projection into a static function too 2014-10-02 12:57:01 +02:00
twinaphex
c574025370 (GL) Make gl_deinit_fbo a static function again 2014-10-02 12:55:19 +02:00
twinaphex
486dc3adec Get rid of shader_cg.h header 2014-10-02 12:50:27 +02:00
twinaphex
dd506443e9 gl_set_shader - don't set shader backend to 'null shader driver'
if shader type cannot be determined
2014-10-02 12:15:14 +02:00
twinaphex
f1c9343285 (GL) Make gl_init_fbo a static function again 2014-10-02 12:14:12 +02:00
twinaphex
89e449cc86 Get rid of header dependencies on GL in shader_common.h 2014-10-02 11:27:11 +02:00
twinaphex
039a5d7ab3 Create shader_null.c and make shader_backend less dependent
on GL
2014-10-02 11:11:34 +02:00
twinaphex
2e4352dea4 (GL) Pass shader pointer to gl_frame_fbo 2014-10-02 10:45:20 +02:00
twinaphex
475283a35f (GL) Grab pointer to shader first 2014-10-02 10:39:13 +02:00
twinaphex
6316876ad3 (GL) Cleanup gl_shader_set_coords 2014-10-02 10:34:52 +02:00
twinaphex
a1260e05bd (GL) Some further cleanups 2014-10-02 10:27:36 +02:00