mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +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;
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user