(MUI) Do texture unload before loading the new wallpaper

This commit is contained in:
twinaphex 2017-09-30 20:03:51 +02:00
parent 9dde5fc33f
commit 849538b15c
1 changed files with 1 additions and 0 deletions

View File

@ -1784,6 +1784,7 @@ static bool mui_load_image(void *userdata, void *data, enum menu_image_type type
break;
case MENU_IMAGE_WALLPAPER:
mui_context_bg_destroy(mui);
video_driver_texture_unload(&mui->textures.bg);
video_driver_texture_load(data,
TEXTURE_FILTER_MIPMAP_LINEAR, &mui->textures.bg);
menu_display_allocate_white_texture();