749 Commits

Author SHA1 Message Date
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
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
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
Twinaphex
d029362dd7 (GL) Make gl_alive more robust 2014-10-03 17:17:18 +02:00
twinaphex
3f900424ca (GL) Minor tweaks 2014-10-03 14:16:34 +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
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
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
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
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
twinaphex
cc174d041c (GL) Get rid of context_destroy_func macro 2014-10-02 10:24:41 +02:00
twinaphex
2637c45b9a (GL) gl_common.h - get rid of some macros 2014-10-02 10:21:36 +02:00
twinaphex
1b45023528 Move get_alignment inlined function to gfx/gl.c 2014-10-02 01:11:01 +02:00
twinaphex
c861b4f994 Move gl_wrap_type_to_enum to gfx/gl.c 2014-10-02 01:02:13 +02:00
twinaphex
ca12482af0 Move shader files to gfx/shader/ 2014-10-02 00:45:11 +02:00
twinaphex
2afcb61f37 (GL) Turn set_texture_coords into macro 2014-10-02 00:35:01 +02:00
twinaphex
da42ab2ad5 (GL) Style nits pt. 2 2014-10-01 23:53:18 +02:00
twinaphex
7ae81daba9 (GL) Style nits 2014-10-01 23:50:58 +02:00
twinaphex
43c9948087 (GL) Prevent memcpy on gl->tex_coords 2014-10-01 20:37:52 +02:00
twinaphex
7812e06479 (GL) Refactors pt. 3 2014-10-01 20:06:40 +02:00
twinaphex
52d7ac54ec (GL) Refactors pt. 2 2014-10-01 19:34:55 +02:00
twinaphex
e7e43a5c59 (GL) Refactors pt. 1 2014-10-01 18:23:02 +02:00
twinaphex
a0dabeb4ac (GL) Optimization to gl_copy_frame 2014-10-01 17:15:02 +02:00
twinaphex
d982350702 (GL) Cleanups/refactoring 2014-10-01 16:59:43 +02:00
Twinaphex
807818d4c6 (Apple) Reimplement input - get rid of g_current_input_data global
and instead initialize driver.input_data
2014-09-30 15:44:40 +02:00
twinaphex
00e605d9ba Take out MODE_MENu - and introduce g_extern.is_menu 2014-09-25 06:33:28 +02:00
twinaphex
395e2ed756 Add "Force-disable sRGB FBO" option for buggy Intel OpenGL drivers
on Windows - should hopefully fix messed up colors with it enabled (untested)
2014-09-21 05:23:51 +02:00
twinaphex
a752db392f Revert "Do life cycle state checking outside of graphics driver for"
This reverts commit 06bea05634acdb7a80bb7945dd19c8bac240df2b.
2014-09-14 07:53:18 +02:00
twinaphex
06bea05634 Do life cycle state checking outside of graphics driver for
menu display driver's 'frame' function
2014-09-14 06:02:05 +02:00
twinaphex
259d75fa6e (GLUI) Fix Savestate load/save and resume 2014-09-14 05:57:53 +02:00
Lioncash
3912b3fee4 retroarch_logger: Append the calling function name to the log message.
Makes tracing back a little easier.
2014-09-13 20:02:53 -04:00
Lioncash
085a74d33f gl: Silence a possible null dereference warning 2014-09-12 22:41:30 -04:00
Lioncash
64272ef327 Squash some more potential null pointer dereferences 2014-09-11 23:04:02 -04:00
twinaphex
75d2e13dcb Make drivers non-const 2014-09-11 07:06:20 +02:00