fix edge case where resetting shader parameter wasn't counted as a modification

This commit is contained in:
LazyBumHorse 2019-08-22 18:08:58 +02:00
parent a882901e39
commit 813a5cc370
2 changed files with 6 additions and 0 deletions

View File

@ -446,6 +446,8 @@ int menu_shader_manager_clear_parameter(struct video_shader *shader,
param->current = MIN(MAX(param->minimum,
param->current), param->maximum);
menu_driver_shader_modified = true;
return 0;
}

View File

@ -558,6 +558,8 @@ void ShaderParamsDialog::onShaderResetPass(int pass)
}
}
menu_shader_set_modified(true);
reload();
}
@ -602,6 +604,8 @@ void ShaderParamsDialog::onShaderResetParameter(QString parameter)
param->current = param->initial;
}
menu_shader_set_modified(true);
reload();
}