From 849538b15c6ba6db1b69158846732ed38e926fa1 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 30 Sep 2017 20:03:51 +0200 Subject: [PATCH] (MUI) Do texture unload before loading the new wallpaper --- menu/drivers/materialui.c | 1 + 1 file changed, 1 insertion(+) diff --git a/menu/drivers/materialui.c b/menu/drivers/materialui.c index fb07e2a5ad..e18dfeefcb 100644 --- a/menu/drivers/materialui.c +++ b/menu/drivers/materialui.c @@ -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();