mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 11:18:25 +00:00
(MaterialUI) Fix performance regression - we were not checking
if the menu background actually exists prior to initiating the task
This commit is contained in:
parent
476c047f85
commit
05bff46236
@ -1565,8 +1565,9 @@ static void mui_context_reset(void *data)
|
||||
menu_display_allocate_white_texture();
|
||||
mui_context_reset_textures(mui);
|
||||
|
||||
task_push_image_load(settings->path.menu_wallpaper,
|
||||
menu_display_handle_wallpaper_upload, NULL);
|
||||
if (!string_is_empty(settings->path.menu_wallpaper))
|
||||
task_push_image_load(settings->path.menu_wallpaper,
|
||||
menu_display_handle_wallpaper_upload, NULL);
|
||||
}
|
||||
|
||||
static int mui_environ(enum menu_environ_cb type, void *data, void *userdata)
|
||||
|
Loading…
Reference in New Issue
Block a user