mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
(Menu) menu_action_ok - cleanup
This commit is contained in:
parent
7c4e08eed3
commit
8600b6dd8c
@ -1873,12 +1873,10 @@ static int menu_action_ok(const char *dir,
|
|||||||
}
|
}
|
||||||
else if (!strcmp(menu_label, "video_shader_pass"))
|
else if (!strcmp(menu_label, "video_shader_pass"))
|
||||||
{
|
{
|
||||||
struct gfx_shader *shader = (struct gfx_shader*)
|
|
||||||
driver.menu->shader;
|
|
||||||
unsigned pass = (menu_type - MENU_SETTINGS_SHADER_0) / 3;
|
unsigned pass = (menu_type - MENU_SETTINGS_SHADER_0) / 3;
|
||||||
|
|
||||||
fill_pathname_join(shader->pass[pass].source.path,
|
fill_pathname_join(driver.menu->shader->pass[pass].source.path,
|
||||||
dir, path, sizeof(shader->pass[pass].source.path));
|
dir, path, sizeof(driver.menu->shader->pass[pass].source.path));
|
||||||
|
|
||||||
/* This will reset any changed parameters. */
|
/* This will reset any changed parameters. */
|
||||||
gfx_shader_resolve_parameters(NULL, driver.menu->shader);
|
gfx_shader_resolve_parameters(NULL, driver.menu->shader);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user