Commit Graph

4387 Commits

Author SHA1 Message Date
Twinaphex c1bb8f711d Fix some warnings for non-HAVE_THREADS targets 2015-12-07 08:00:27 +01:00
twinaphex cbdd305626 Add HAVE_THREADS ifdef 2015-12-06 22:42:22 +01:00
twinaphex a4de5895d8 nit 2015-12-06 21:58:51 +01:00
twinaphex 137757d832 gfx/video_texture_c.c - add HAVE_THREADS ifdef 2015-12-06 21:58:12 +01:00
twinaphex 7f433a36d5 Move rthreads.h header include to video_thread_wrapper.c 2015-12-06 21:35:55 +01:00
twinaphex 9b65988682 Create rarch_threaded_video_send_and_wait 2015-12-06 21:34:39 +01:00
twinaphex 37286ca894 header cleanup 2015-12-06 21:31:20 +01:00
twinaphex ae58a9ed19 Check if shader->deinit function is bound first 2015-12-06 21:19:52 +01:00
twinaphex 6fbdd319f4 Add header include 2015-12-06 19:59:15 +01:00
twinaphex c6359d6dbc Divorce g_system_menu from global state 2015-12-06 19:31:47 +01:00
Twinaphex 4e14e6e6fa Merge pull request #2529 from heuripedes/master
(shader_glsl.c) Fix memory leak
2015-12-06 18:31:50 +01:00
twinaphex 99ea0095a3 Create RARCH_MENU_CTL_FRAME 2015-12-06 18:28:37 +01:00
Higor Eurípedes 9bb36cac38 (shader_glsl.c) Fix memory leak 2015-12-06 14:23:51 -03:00
twinaphex 0389474e12 Set dangling pointers to null for RARCH_DISPLAY_CTL_DEINIT
and RARCH_AUDIO_CTL_DEINIT too
2015-12-06 18:15:00 +01:00
twinaphex a3033c2f66 Buildfixes 2015-12-06 18:12:49 +01:00
twinaphex 09ecd04d67 Make sure gpu_buffer is set back to NULL too upon
RARCH_DISPLAY_CTL_DESTROY time
2015-12-06 17:33:51 +01:00
twinaphex 0f9ba38b76 Make sure all static local variables from video_driver_ctl are
reset back to default state after calling RARCH_DISPLAY_CTL_DESTROY
2015-12-06 17:17:08 +01:00
twinaphex 083d1fec69 video_driver_frame - cleanup 2015-12-06 15:24:06 +01:00
twinaphex bbbf6513fd move gpu record buffer to video_driver.c 2015-12-06 15:22:20 +01:00
twinaphex a23598e553 Don't need video_driver_current_msg anymore 2015-12-06 14:32:30 +01:00
twinaphex 39e9d5c5ba Start cutting down on the size of some char local variables - we
don't need PATH_MAX_LENGTH for everything
2015-12-06 13:28:20 +01:00
twinaphex 38a7338592 Fix video_shader_driver_get_current_shader 2015-12-06 11:22:16 +01:00
twinaphex 693e684b4f (font_driver.c) Turn some functions static and remove others that
are unused
2015-12-05 22:58:52 +01:00
twinaphex ec1b1c3e54 Header cleanups 2015-12-05 21:23:34 +01:00
twinaphex c79c205a0d Header include cleanup 2015-12-05 20:26:37 +01:00
twinaphex f45867d1cd More CXX_BUILD fixes 2015-12-05 18:56:37 +01:00
twinaphex 05b1097d37 Rearrange some headers 2015-12-05 18:45:15 +01:00
twinaphex 5b939e810c Get rid of driver_t and driver_get_ptr 2015-12-05 16:54:13 +01:00
twinaphex 18ab12ab83 Take header include record_driver.h out of driver.h 2015-12-05 16:12:29 +01:00
twinaphex 7e5d1f3117 Only rcord_driver.c references driver->recording now 2015-12-05 16:05:35 +01:00
twinaphex 736f343d9f Create RARCH_MENU_CTL_IS_ALIVE 2015-12-05 13:49:34 +01:00
twinaphex 03e2873296 (D3D) Buildfixes 2015-12-05 13:31:02 +01:00
twinaphex 2f29d9f18c Take out menu/menu_driver.h include from driver.h 2015-12-05 13:22:50 +01:00
twinaphex c8d8176c0c Get rid of unused variables 2015-12-05 12:50:56 +01:00
twinaphex 6a00c1cf9a Take font driver handles out of driver_t struct 2015-12-05 12:25:53 +01:00
twinaphex 612c05ac71 (Xbox) Buildfix 2015-12-05 12:21:20 +01:00
twinaphex 78fef6422b Create font_driver_get_message_width 2015-12-05 12:17:58 +01:00
twinaphex df813ad58b Create font_driver_flush 2015-12-05 12:10:12 +01:00
twinaphex df1c6344be Merge font_renderer_driver.c and font_driver.c 2015-12-05 12:07:22 +01:00
twinaphex 44b708642c Expand font_driver_bind_block 2015-12-05 11:34:56 +01:00
twinaphex 988162ed62 Cut down on code duplication 2015-12-05 11:29:06 +01:00
twinaphex 5f27366cb3 Expand font_driver_init_first 2015-12-05 11:18:05 +01:00
twinaphex 4c8a2a3f88 Create font_driver_bind_block 2015-12-05 10:59:03 +01:00
twinaphex a26e64e24d Expand font_driver_free 2015-12-05 10:54:53 +01:00
twinaphex e196fdf141 font_driver_render_msg - make it possible to pass special font data 2015-12-05 10:49:28 +01:00
twinaphex c88d795734 Start using font driver wrapper functions 2015-12-05 10:33:50 +01:00
twinaphex 89721b8837 Start creating font driver wrapper functions 2015-12-05 10:31:15 +01:00
twinaphex ddff980161 Remove unused variables 2015-12-05 09:14:55 +01:00
twinaphex f72b69e8d1 Don't include frontend_driver.h as part of driver.h 2015-12-05 09:09:31 +01:00
twinaphex c36b8e1ae9 Don't touch driver->frontend outside of frontend_driver.c anymore 2015-12-05 08:52:01 +01:00
twinaphex 1fcf63735f Header include changes 2015-12-05 07:45:36 +01:00
twinaphex e735f84baa Refactor shader subsystem 2015-12-05 07:33:32 +01:00
twinaphex 8c3c22f15a Move rewind.h header include to shader_glsl.c 2015-12-04 16:54:09 +01:00
twinaphex 7b1fb48034 (D3D) Use new video_shader_driver_* functions 2015-12-04 16:46:43 +01:00
twinaphex ab3f0f0652 Create remaining video_shader_driver_* functions 2015-12-04 16:45:38 +01:00
twinaphex 6d37cfc2fb Create video_shader_driver_get_prev_textures 2015-12-04 16:34:58 +01:00
twinaphex a2da59ac9b Create video_shader_driver_set_coords and video_shader_driver_set_mvp 2015-12-04 16:33:07 +01:00
twinaphex 827b3cc89b Create video_shader_driver_num_shaders 2015-12-04 16:19:12 +01:00
twinaphex 0ed77247a8 Create video_shader_driver_mipmap_input 2015-12-04 16:16:40 +01:00
twinaphex c8f2ef7734 Create video_shader_driver_get_ident 2015-12-04 16:05:42 +01:00
twinaphex 1956dffe9b Create video_shader_driver_use 2015-12-04 16:01:09 +01:00
twinaphex bdf099a19c Create video_shader_driver_deinit 2015-12-04 15:56:36 +01:00
twinaphex de555d6040 Replace all instances of shader->init 2015-12-04 15:54:10 +01:00
twinaphex 3f6540dd58 Start using video_shader_driver_init for D3D too 2015-12-04 15:53:02 +01:00
twinaphex 11109a198b Create video_shader_driver_init 2015-12-04 15:50:40 +01:00
twinaphex 351077dc78 Start reimplementing audio/video/input driver deiniting 2015-12-04 14:30:59 +01:00
twinaphex c0a1a6a3fe Move system->shutdown to runloop_ctl, turn it into a local
static variable
2015-12-04 12:44:12 +01:00
twinaphex bdb54d91b7 video_monitor_fps_statistics - small cleanup 2015-12-04 08:27:47 +01:00
twinaphex 6411a7d0d9 Make video_driver_current_msg smaller 2015-12-04 08:04:16 +01:00
twinaphex 830b3052e5 (video_driver.c) Turn some variables into local static variables 2015-12-04 02:29:49 +01:00
twinaphex 96ddc1f722 egl_destroy - don't do glFlush/glFinish on mobile platforms 2015-12-04 01:44:41 +01:00
Higor Eurípedes f63468d783 Fix some potential null derefs 2015-12-03 21:22:29 -03:00
twinaphex faa02023ce Check if video_driver_poke is false 2015-12-04 01:21:46 +01:00
twinaphex 581c856676 Attempt to make gl_raster_font_flush_block more robust 2015-12-04 01:04:27 +01:00
twinaphex d8b9be9349 Put parentheses around earlier check 2015-12-04 00:26:53 +01:00
twinaphex b6be555809 Try to prevent a NULL pointer dereference for global - rename video_frame 2015-12-04 00:26:09 +01:00
twinaphex 757f0692ad (gfx_ctx_swap_buffers) Guard against video context data being NULL 2015-12-03 23:59:54 +01:00
twinaphex bab243a7a2 (egl_common.c) Cleanups 2015-12-03 23:33:50 +01:00
twinaphex e73224c5c2 Get rid of superfluous log 2015-12-03 23:24:54 +01:00
twinaphex eda3e06898 (GL) Guard against possible segfaults in threaded video mode 2015-12-03 23:16:37 +01:00
twinaphex beb01b5d57 Create gl_init_textures_reference 2015-12-03 22:42:54 +01:00
twinaphex 60313f7f48 (Android) Don't call eglSwapBuffers if g_egl_dpy and g_egl_surf are not
yet ready
2015-12-03 22:23:20 +01:00
twinaphex 66721e8902 Set g_egl_hw_ctx to NULL in egl_create_context 2015-12-03 22:13:03 +01:00
twinaphex 0c8ed91b36 Nits 2015-12-02 01:02:58 +01:00
twinaphex b7f7b1f3b7 video_thread_wrapper.c - cleanups 2015-12-02 01:01:27 +01:00
twinaphex 6c6beca430 Create x11_save_last_used_monitor 2015-12-01 08:49:35 +01:00
twinaphex c4354ff429 Create g_x11_screen 2015-12-01 08:42:33 +01:00
Twinaphex 96da691728 Revert "Revert "(gl) Fix gl->should_resize being always true""
This reverts commit d35840ebcd.
2015-12-01 07:15:06 +01:00
Twinaphex d0340d0f80 (GLSL) Fix regression 2015-12-01 07:12:26 +01:00
Twinaphex d35840ebcd Revert "(gl) Fix gl->should_resize being always true"
This reverts commit 0f339caf30.
2015-12-01 04:58:47 +01:00
Higor Eurípedes 0dfccf2785 (sdl2_video) Fix floating point exception 2015-11-30 21:32:32 -03:00
Higor Eurípedes 0f339caf30 (gl) Fix gl->should_resize being always true 2015-11-30 21:32:32 -03:00
twinaphex e8471ead48 Move rewind state code out of g_extern 2015-11-30 22:29:16 +01:00
twinaphex 0db7cda264 Start moving rewind code to rewind.c 2015-11-30 22:25:13 +01:00
twinaphex 9824eb7ea9 Rename rarch_main_ctl to runloop_ctl 2015-11-30 21:42:59 +01:00
twinaphex 4e333302ae Rename RARCH_MAIN_CTL* to RUNLOOP_CTL* 2015-11-30 21:35:50 +01:00
twinaphex 862483f67e (video_context_driver.c) Cleanups 2015-11-30 09:02:12 +01:00
twinaphex d1486464fe Turn video_driver_frame_filter into a static function 2015-11-30 07:22:08 +01:00
twinaphex 2fe9ef736c (video_driver.c) Uniquely namespace static variables 2015-11-30 07:14:23 +01:00
twinaphex 91b40523bd Weird regression fixed 2015-11-30 06:57:58 +01:00