mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 03:10:14 +00:00
(Menu) Refactor menu_free_shaders
This commit is contained in:
parent
86f2ef2ae8
commit
6f541d84f9
@ -270,15 +270,6 @@ void *menu_init(const void *data)
|
||||
return menu;
|
||||
}
|
||||
|
||||
void menu_free_shaders(menu_handle_t *menu)
|
||||
{
|
||||
#ifdef HAVE_SHADER_MANAGER
|
||||
if (menu->shader)
|
||||
free(menu->shader);
|
||||
menu->shader = NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
void menu_free(void *data)
|
||||
{
|
||||
menu_handle_t *menu = (menu_handle_t*)data;
|
||||
@ -286,7 +277,11 @@ void menu_free(void *data)
|
||||
if (!menu)
|
||||
return;
|
||||
|
||||
menu_free_shaders(menu);
|
||||
#ifdef HAVE_SHADER_MANAGER
|
||||
if (menu->shader)
|
||||
free(menu->shader);
|
||||
menu->shader = NULL;
|
||||
#endif
|
||||
|
||||
if (driver.menu_ctx && driver.menu_ctx->free)
|
||||
driver.menu_ctx->free(menu);
|
||||
|
Loading…
Reference in New Issue
Block a user