mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Turn video_driver_is_threaded into a static function
This commit is contained in:
parent
5203495e09
commit
c028f56016
@ -297,15 +297,15 @@ static bool hw_render_context_is_gl(enum retro_hw_context_type type)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool video_driver_is_threaded(void)
|
||||
static bool video_driver_is_threaded(void)
|
||||
{
|
||||
#ifdef HAVE_THREADS
|
||||
settings_t *settings = config_get_ptr();
|
||||
return settings->video.threaded
|
||||
&& !video_driver_is_hw_context();
|
||||
#else
|
||||
return false;
|
||||
if (!video_driver_is_hw_context()
|
||||
&& settings->video.threaded)
|
||||
return true;
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -263,7 +263,6 @@ void video_driver_set_own_driver(void);
|
||||
void video_driver_unset_own_driver(void);
|
||||
bool video_driver_owns_driver(void);
|
||||
bool video_driver_is_hw_context(void);
|
||||
bool video_driver_is_threaded(void);
|
||||
void video_driver_deinit_hw_context(void);
|
||||
struct retro_hw_render_callback *video_driver_get_hw_context(void);
|
||||
const struct retro_hw_render_context_negotiation_interface
|
||||
|
Loading…
x
Reference in New Issue
Block a user