mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 11:18:25 +00:00
CLeanup
This commit is contained in:
parent
2d399fd370
commit
b4b79b56ae
@ -73,6 +73,13 @@ unsigned menu_shader_manager_get_amount_passes(void)
|
||||
|
||||
return shader->passes;
|
||||
}
|
||||
|
||||
void menu_shader_manager_free(void)
|
||||
{
|
||||
if (menu_driver_shader)
|
||||
free(menu_driver_shader);
|
||||
menu_driver_shader = NULL;
|
||||
}
|
||||
#else
|
||||
struct video_shader *menu_shader_get(void)
|
||||
{
|
||||
@ -90,17 +97,9 @@ struct video_shader_pass *menu_shader_manager_get_pass(unsigned i)
|
||||
}
|
||||
|
||||
unsigned menu_shader_manager_get_amount_passes(void) { return 0; }
|
||||
void menu_shader_manager_free(void) { }
|
||||
#endif
|
||||
|
||||
void menu_shader_manager_free(void)
|
||||
{
|
||||
#ifdef HAVE_SHADER_MANAGER
|
||||
if (menu_driver_shader)
|
||||
free(menu_driver_shader);
|
||||
menu_driver_shader = NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* menu_shader_manager_init:
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user