Beispiel #1
0
void uninit_video_input(void)
{
#ifdef HAVE_OVERLAY
   if (driver.overlay)
   {
      input_overlay_free(driver.overlay);
      driver.overlay = NULL;
      memset(&driver.overlay_state, 0, sizeof(driver.overlay_state));
   }
#endif

   if (!driver.input_data_own && driver.input_data != driver.video_data && driver.input && driver.input->free)
      input_free_func();


   if (!driver.video_data_own && driver.video_data && driver.video && driver.video->free)
      video_free_func();

   deinit_pixel_converter();

   rarch_deinit_filter();

   deinit_shader_dir();
   compute_monitor_fps_statistics();
}
Beispiel #2
0
void uninit_video_input(void)
{
   rarch_main_command(RARCH_CMD_OVERLAY_DEINIT);

   if (!driver.input_data_own && driver.input_data != driver.video_data && driver.input && driver.input->free)
      driver.input->free(driver.input_data);

   if (!driver.video_data_own && driver.video_data && driver.video && driver.video->free)
      driver.video->free(driver.video_data);

   deinit_pixel_converter();

   rarch_deinit_filter();

   deinit_shader_dir();
   compute_monitor_fps_statistics();
}
Beispiel #3
0
static void init_shader_dir(void)
{
   unsigned i;
   if (!*g_settings.video.shader_dir)
      return;

   g_extern.shader_dir.list = dir_list_new(g_settings.video.shader_dir, "cg|cgp|glsl|glslp", false);
   if (!g_extern.shader_dir.list || g_extern.shader_dir.list->size == 0)
   {
      deinit_shader_dir();
      return;
   }

   g_extern.shader_dir.ptr  = 0;
   dir_list_sort(g_extern.shader_dir.list, false);

   for (i = 0; i < g_extern.shader_dir.list->size; i++)
      RARCH_LOG("Found shader \"%s\"\n", g_extern.shader_dir.list->elems[i].data);
}