mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-29 11:10:27 +00:00
Merge pull request #6757 from Dwedit/additional-null-check
Additional null checks in video_driver.c
This commit is contained in:
commit
36b9fd94ba
@ -564,12 +564,12 @@ const video_poke_interface_t *video_driver_get_poke(void)
|
||||
|
||||
static bool video_context_has_focus(void)
|
||||
{
|
||||
return current_video_context.has_focus(video_context_data);
|
||||
return current_video_context.has_focus && current_video_context.has_focus(video_context_data);
|
||||
}
|
||||
|
||||
static bool video_driver_has_focus(void)
|
||||
{
|
||||
return current_video->focus(video_driver_data);
|
||||
return current_video && current_video->focus && current_video->focus(video_driver_data);
|
||||
}
|
||||
|
||||
static bool null_driver_has_focus(void)
|
||||
|
Loading…
Reference in New Issue
Block a user