mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Merge pull request #1585 from lakkatv/whitescreen
(Menu) Prevent calling context reset twice, fixes the white screen on RP...
This commit is contained in:
commit
97f316c225
3
driver.c
3
driver.c
@ -339,6 +339,7 @@ bool driver_update_system_av_info(const struct retro_system_av_info *info)
|
||||
void init_drivers(int flags)
|
||||
{
|
||||
driver_t *driver = driver_get_ptr();
|
||||
global_t *global = global_get_ptr();
|
||||
|
||||
if (flags & DRIVER_VIDEO)
|
||||
driver->video_data_own = false;
|
||||
@ -391,7 +392,7 @@ void init_drivers(int flags)
|
||||
if (flags & DRIVER_MENU)
|
||||
{
|
||||
init_menu();
|
||||
menu_driver_context_reset();
|
||||
menu_update_libretro_info(&global->menu.info);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -71,7 +71,7 @@ static void draw_frame(void)
|
||||
*
|
||||
* Update menu state which depends on config.
|
||||
**/
|
||||
static void menu_update_libretro_info(struct retro_system_info *info)
|
||||
void menu_update_libretro_info(struct retro_system_info *info)
|
||||
{
|
||||
#ifndef HAVE_DYNAMIC
|
||||
retro_get_system_info(info);
|
||||
@ -167,8 +167,6 @@ bool menu_load_content(void)
|
||||
return false;
|
||||
}
|
||||
|
||||
menu_update_libretro_info(&global->menu.info);
|
||||
|
||||
menu_shader_manager_init(driver->menu);
|
||||
|
||||
rarch_main_command(RARCH_CMD_HISTORY_INIT);
|
||||
|
@ -199,6 +199,8 @@ void menu_apply_deferred_settings(void);
|
||||
|
||||
bool menu_display_update_pending(void);
|
||||
|
||||
void menu_update_libretro_info(struct retro_system_info *info);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user