(RGUI) Add checks in case set_rgui_texture is not bound

This commit is contained in:
twinaphex 2013-03-10 23:18:34 +01:00
parent 275eef09c1
commit e5ca995fac

View File

@ -1751,9 +1751,13 @@ bool menu_iterate(void)
input_entry_ret = rgui_iterate(rgui, action);
// draw last frame for loading messages
driver.video_poke->set_rgui_texture(driver.video_data, menu_framebuf);
if (driver.video_poke->set_rgui_texture)
driver.video_poke->set_rgui_texture(driver.video_data, menu_framebuf);
rarch_render_cached_frame();
driver.video_poke->set_rgui_texture(driver.video_data, NULL);
if (driver.video_poke->set_rgui_texture)
driver.video_poke->set_rgui_texture(driver.video_data, NULL);
input_process_ret = menu_input_process(NULL, NULL);