From 778e7424706696167f624c9bcccd2dc25798fce8 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 18 Oct 2016 04:05:51 +0200 Subject: [PATCH] Make video_driver_is_threaded a public function --- gfx/video_driver.c | 2 +- gfx/video_driver.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index a7f4e4ae9c..999d6ebcc0 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -274,7 +274,7 @@ static bool hw_render_context_is_gl(enum retro_hw_context_type type) return false; } -static bool video_driver_is_threaded(void) +bool video_driver_is_threaded(void) { #ifdef HAVE_THREADS settings_t *settings = config_get_ptr(); diff --git a/gfx/video_driver.h b/gfx/video_driver.h index 916c2208f4..0d2d8fe1d5 100644 --- a/gfx/video_driver.h +++ b/gfx/video_driver.h @@ -339,6 +339,7 @@ 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 *video_driver_get_context_negotiation_interface(void);