temporary crash fix

This commit is contained in:
Brad Parker 2019-02-26 23:37:01 -05:00
parent 4ec71da9a9
commit 433cbb021f

View File

@ -662,8 +662,12 @@ static void sdl2_poke_set_aspect_ratio(void *data, unsigned aspect_ratio_idx)
video_driver_set_aspect_ratio_value(aspectratio_lut[aspect_ratio_idx].value);
vid->video.force_aspect = true;
vid->should_resize = true;
/* FIXME: Why is vid NULL here when starting content? */
if (vid)
{
vid->video.force_aspect = true;
vid->should_resize = true;
}
}
static void sdl2_poke_apply_state_changes(void *data)