(input_overlay.c) Cleanup

This commit is contained in:
twinaphex 2017-01-01 04:31:22 +01:00
parent 46080f2194
commit 36a6abede7
1 changed files with 2 additions and 5 deletions

View File

@ -502,12 +502,9 @@ void input_overlay_loaded(void *task_data, void *user_data, const char *err)
} }
#endif #endif
if (!data->overlay_enable) if (!data->overlay_enable || !video_driver_overlay_interface(&iface) || !iface)
goto abort_load;
if (!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; goto abort_load;
} }