mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
Move early return check to input_driver.c
This commit is contained in:
parent
6d4659a902
commit
0ec6ef75df
@ -287,7 +287,7 @@ void input_poll(void)
|
||||
}
|
||||
|
||||
#ifdef HAVE_OVERLAY
|
||||
if (overlay_ptr)
|
||||
if (overlay_ptr && input_overlay_is_alive(overlay_ptr))
|
||||
input_poll_overlay(overlay_ptr, settings->input.overlay_opacity);
|
||||
#endif
|
||||
|
||||
|
@ -604,12 +604,7 @@ void input_poll_overlay(input_overlay_t *ol, float opacity)
|
||||
uint16_t key_mod = 0;
|
||||
bool polled = false;
|
||||
settings_t *settings = config_get_ptr();
|
||||
input_overlay_state_t *ol_state = NULL;
|
||||
|
||||
if (!input_overlay_is_alive(ol))
|
||||
return;
|
||||
|
||||
ol_state = &ol->overlay_state;
|
||||
input_overlay_state_t *ol_state = &ol->overlay_state;
|
||||
|
||||
if (!ol_state)
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user