mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
fix edge case where resetting shader parameter wasn't counted as a modification
This commit is contained in:
parent
a882901e39
commit
813a5cc370
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user