Get rid of some redundant function pointer checks for driver.input
This commit is contained in:
parent
a5e367d2f0
commit
709ecbfa67
|
@ -780,7 +780,6 @@ static inline void input_poll_overlay(void)
|
||||||
|
|
||||||
void rarch_input_poll(void)
|
void rarch_input_poll(void)
|
||||||
{
|
{
|
||||||
if (driver.input && driver.input->poll)
|
|
||||||
driver.input->poll(driver.input_data);
|
driver.input->poll(driver.input_data);
|
||||||
|
|
||||||
#ifdef HAVE_OVERLAY
|
#ifdef HAVE_OVERLAY
|
||||||
|
@ -2165,7 +2164,6 @@ static void set_fullscreen(bool fullscreen)
|
||||||
driver.video_cache_context = false;
|
driver.video_cache_context = false;
|
||||||
|
|
||||||
/* Poll input to avoid possibly stale data to corrupt things. */
|
/* Poll input to avoid possibly stale data to corrupt things. */
|
||||||
if (driver.input)
|
|
||||||
driver.input->poll(driver.input_data);
|
driver.input->poll(driver.input_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue