mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-20 18:02:12 +00:00
Fix memory leak with white texture.
This commit is contained in:
parent
89a5983c3c
commit
3ee172c410
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user