Buildfix for --disable-menu

This commit is contained in:
twinaphex 2020-02-13 20:23:41 +01:00
parent bf35c1faf5
commit a92943d66c

View File

@ -203,8 +203,10 @@ bool menu_shader_manager_set_preset(struct video_shader *shader,
ret = true;
end:
command_event(CMD_EVENT_SHADER_PRESET_LOADED, NULL);
#ifdef HAVE_MENU
menu_entries_ctl(MENU_ENTRIES_CTL_SET_REFRESH, &refresh);
#endif
command_event(CMD_EVENT_SHADER_PRESET_LOADED, NULL);
return ret;
clear:
@ -546,7 +548,9 @@ int menu_shader_manager_clear_num_passes(struct video_shader *shader)
shader->passes = 0;
#ifdef HAVE_MENU
menu_entries_ctl(MENU_ENTRIES_CTL_SET_REFRESH, &refresh);
#endif
video_shader_resolve_parameters(NULL, shader);