(Menu) menu_action_ok - cleanup

This commit is contained in:
twinaphex 2014-09-03 20:57:50 +02:00
parent 7c4e08eed3
commit 8600b6dd8c

View File

@ -1873,12 +1873,10 @@ static int menu_action_ok(const char *dir,
}
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;
fill_pathname_join(shader->pass[pass].source.path,
dir, path, sizeof(shader->pass[pass].source.path));
fill_pathname_join(driver.menu->shader->pass[pass].source.path,
dir, path, sizeof(driver.menu->shader->pass[pass].source.path));
/* This will reset any changed parameters. */
gfx_shader_resolve_parameters(NULL, driver.menu->shader);