(input_overlay.c) Cleanup

This commit is contained in:
twinaphex 2017-01-01 04:31:22 +01:00
parent 46080f2194
commit 36a6abede7

View File

@ -502,12 +502,9 @@ void input_overlay_loaded(void *task_data, void *user_data, const char *err)
}
#endif
if (!data->overlay_enable)
goto abort_load;
if (!video_driver_overlay_interface(&iface) || !iface)
if (!data->overlay_enable || !video_driver_overlay_interface(&iface) || !iface)
{
RARCH_ERR("Overlay interface is not present in video driver.\n");
RARCH_ERR("Overlay interface is not present in video driver, or not enabled.\n");
goto abort_load;
}