mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
viewport_info can be NULL. Check for this.
This commit is contained in:
parent
fc5ba8f79a
commit
9be4fe705b
2
driver.c
2
driver.c
@ -1040,7 +1040,7 @@ void init_video_input(void)
|
|||||||
driver.video->poke_interface(driver.video_data, &driver.video_poke);
|
driver.video->poke_interface(driver.video_data, &driver.video_poke);
|
||||||
|
|
||||||
// Force custom viewport to have sane parameters.
|
// Force custom viewport to have sane parameters.
|
||||||
if (!custom_vp->width || !custom_vp->height)
|
if (driver.video->viewport_info && (!custom_vp->width || !custom_vp->height))
|
||||||
{
|
{
|
||||||
custom_vp->width = width;
|
custom_vp->width = width;
|
||||||
custom_vp->height = height;
|
custom_vp->height = height;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user