diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 1d1f18f4d7..dca890a87e 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -276,9 +276,11 @@ static bool find_video_driver(void) if (video_driver_ctl(RARCH_DISPLAY_CTL_IS_HW_CONTEXT, NULL)) { + current_video = NULL; struct retro_hw_render_callback *hwr = video_driver_callback(); - current_video = NULL; + + (void)hwr; #if defined(HAVE_VULKAN) if (hwr && hw_render_context_is_vulkan(hwr->context_type))