Turn video_driver_is_threaded into a static function

This commit is contained in:
twinaphex 2017-01-05 08:52:30 +01:00
parent 5203495e09
commit c028f56016
2 changed files with 5 additions and 6 deletions

View File

@ -297,15 +297,15 @@ static bool hw_render_context_is_gl(enum retro_hw_context_type type)
return false; return false;
} }
bool video_driver_is_threaded(void) static bool video_driver_is_threaded(void)
{ {
#ifdef HAVE_THREADS #ifdef HAVE_THREADS
settings_t *settings = config_get_ptr(); settings_t *settings = config_get_ptr();
return settings->video.threaded if (!video_driver_is_hw_context()
&& !video_driver_is_hw_context(); && settings->video.threaded)
#else return true;
return false;
#endif #endif
return false;
} }
/** /**

View File

@ -263,7 +263,6 @@ void video_driver_set_own_driver(void);
void video_driver_unset_own_driver(void); void video_driver_unset_own_driver(void);
bool video_driver_owns_driver(void); bool video_driver_owns_driver(void);
bool video_driver_is_hw_context(void); bool video_driver_is_hw_context(void);
bool video_driver_is_threaded(void);
void video_driver_deinit_hw_context(void); void video_driver_deinit_hw_context(void);
struct retro_hw_render_callback *video_driver_get_hw_context(void); struct retro_hw_render_callback *video_driver_get_hw_context(void);
const struct retro_hw_render_context_negotiation_interface const struct retro_hw_render_context_negotiation_interface