mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Merge pull request #8811 from huwpascoe/fix
Fix video_layout crash on unsupported drivers
This commit is contained in:
commit
837a6c1750
@ -1221,7 +1221,7 @@ bool video_driver_overlay_interface(const video_overlay_interface_t **iface)
|
|||||||
#ifdef HAVE_VIDEO_LAYOUT
|
#ifdef HAVE_VIDEO_LAYOUT
|
||||||
const video_layout_render_interface_t *video_driver_layout_render_interface(void)
|
const video_layout_render_interface_t *video_driver_layout_render_interface(void)
|
||||||
{
|
{
|
||||||
if (!current_video)
|
if (!current_video || !current_video->video_layout_render_interface)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return current_video->video_layout_render_interface(video_driver_data);
|
return current_video->video_layout_render_interface(video_driver_data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user