Fix video_poke check causing SDL crash.

This commit is contained in:
Themaister 2013-04-21 23:17:07 +02:00
parent 26db89ac89
commit 3c31d6118a

View File

@ -946,7 +946,7 @@ void init_video_input(void)
if (driver.video->set_rotation && g_extern.system.rotation)
video_set_rotation_func(g_extern.system.rotation);
if (driver.video_poke->set_aspect_ratio &&
if (driver.video_poke && driver.video_poke->set_aspect_ratio &&
g_settings.video.aspect_ratio_idx != ASPECT_RATIO_CONFIG)
driver.video_poke->set_aspect_ratio(driver.video_data, g_settings.video.aspect_ratio_idx);