Fix memory leak with white texture.

This commit is contained in:
Hans-Kristian Arntzen 2016-06-25 14:25:44 +02:00
parent 89a5983c3c
commit 3ee172c410

View File

@ -598,6 +598,9 @@ void menu_display_allocate_white_texture(void)
ti.height = 1;
ti.pixels = (uint32_t*)&white_data;
if (menu_display_white_texture)
video_driver_texture_unload(&menu_display_white_texture);
video_driver_texture_load(&ti,
TEXTURE_FILTER_NEAREST, &menu_display_white_texture);
}