mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
(Menu) Rewrite menu_action_ok shader options
This commit is contained in:
parent
94d765c409
commit
98c5e73d81
@ -1857,9 +1857,7 @@ static int menu_action_ok(const char *dir,
|
||||
menu_flush_stack_type(driver.menu->menu_stack,MENU_SETTINGS_AUDIO_OPTIONS);
|
||||
}
|
||||
#ifdef HAVE_SHADER_MANAGER
|
||||
else if (menu_common_type_is(menu_type) == MENU_SETTINGS_SHADER_OPTIONS)
|
||||
{
|
||||
if (menu_type == MENU_SETTINGS_SHADER_PRESET)
|
||||
else if (!strcmp(menu_label, "video_shader_preset"))
|
||||
{
|
||||
char shader_path[PATH_MAX];
|
||||
fill_pathname_join(shader_path, dir, path, sizeof(shader_path));
|
||||
@ -1869,8 +1867,11 @@ static int menu_action_ok(const char *dir,
|
||||
driver.menu->shader,
|
||||
gfx_shader_parse_type(shader_path, RARCH_SHADER_NONE),
|
||||
shader_path);
|
||||
/* Pop stack until we hit shader manager again. */
|
||||
menu_flush_stack_type(driver.menu->menu_stack,
|
||||
MENU_SETTINGS_SHADER_OPTIONS);
|
||||
}
|
||||
else
|
||||
else if (!strcmp(menu_label, "video_shader_pass"))
|
||||
{
|
||||
struct gfx_shader *shader = (struct gfx_shader*)
|
||||
driver.menu->shader;
|
||||
@ -1881,10 +1882,9 @@ static int menu_action_ok(const char *dir,
|
||||
|
||||
/* This will reset any changed parameters. */
|
||||
gfx_shader_resolve_parameters(NULL, driver.menu->shader);
|
||||
}
|
||||
|
||||
/* Pop stack until we hit shader manager again. */
|
||||
menu_flush_stack_type(driver.menu->menu_stack,MENU_SETTINGS_SHADER_OPTIONS);
|
||||
menu_flush_stack_type(driver.menu->menu_stack,
|
||||
MENU_SETTINGS_SHADER_OPTIONS);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user