Quick and dirty fix for fullscreen RGUI crash.

This commit is contained in:
Themaister 2014-03-09 16:47:36 +01:00
parent 6a45de307d
commit 171cb7ed79

View File

@ -1423,6 +1423,9 @@ bool menu_iterate(void *video_data)
#endif
rarch_check_fullscreen();
// video_data can have changed here ...
video_data = driver.video_data;
if (input_key_pressed_func(RARCH_QUIT_KEY) || !video_alive_func())
{
g_extern.lifecycle_state |= (1ULL << MODE_GAME);
@ -1487,6 +1490,9 @@ bool menu_iterate(void *video_data)
if (menu_ctx)
input_entry_ret = menu_iterate_func(rgui, video_data, action);
// video_data can have changed here ...
video_data = driver.video_data;
if (video_data && driver.video_poke && driver.video_poke->set_texture_enable)
driver.video_poke->set_texture_enable(video_data, rgui->frame_buf_show, MENU_TEXTURE_FULLSCREEN);