diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 27a14d3b6b..ac5f411ff7 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -390,6 +390,15 @@ static void init_video_input(const input_driver_t *tmp) retro_fail(1, "init_video_input()"); } +static void video_driver_unset_callback(void) +{ + struct retro_hw_render_callback *hw_render = + video_driver_callback(); + + if (hw_render) + hw_render = NULL; +} + void uninit_video_input(void) { driver_t *driver = driver_get_ptr(); @@ -1040,14 +1049,6 @@ struct retro_hw_render_callback *video_driver_callback(void) return &video_state.hw_render_callback; } -void video_driver_unset_callback(void) -{ - struct retro_hw_render_callback *hw_render = - video_driver_callback(); - - if (hw_render) - hw_render = NULL; -} bool video_driver_frame_filter(const void *data, unsigned width, unsigned height, diff --git a/gfx/video_driver.h b/gfx/video_driver.h index 570946cce6..f777a78d9d 100644 --- a/gfx/video_driver.h +++ b/gfx/video_driver.h @@ -348,8 +348,6 @@ void video_driver_set_aspect_ratio_value(float value); struct retro_hw_render_callback *video_driver_callback(void); -void video_driver_unset_callback(void); - bool video_driver_frame_filter(const void *data, unsigned width, unsigned height, size_t pitch,