mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
Shaders fix for duplicate parameters loading bug
This commit is contained in:
parent
5f10db2c61
commit
7a565d739d
@ -2236,6 +2236,10 @@ gl_core_filter_chain_t *gl_core_filter_chain_create_from_preset(
|
||||
video_shader_parameter *param = &shader->parameters[shader->num_parameters];
|
||||
strlcpy(param->id, meta_param.id.c_str(), sizeof(param->id));
|
||||
strlcpy(param->desc, meta_param.desc.c_str(), sizeof(param->desc));
|
||||
param->initial = meta_param.initial;
|
||||
param->minimum = meta_param.minimum;
|
||||
param->maximum = meta_param.maximum;
|
||||
param->step = meta_param.step;
|
||||
chain->add_parameter(i, shader->num_parameters, meta_param.id);
|
||||
shader->num_parameters++;
|
||||
}
|
||||
|
@ -2646,6 +2646,10 @@ vulkan_filter_chain_t *vulkan_filter_chain_create_from_preset(
|
||||
video_shader_parameter *param = &shader->parameters[shader->num_parameters];
|
||||
strlcpy(param->id, meta_param.id.c_str(), sizeof(param->id));
|
||||
strlcpy(param->desc, meta_param.desc.c_str(), sizeof(param->desc));
|
||||
param->initial = meta_param.initial;
|
||||
param->minimum = meta_param.minimum;
|
||||
param->maximum = meta_param.maximum;
|
||||
param->step = meta_param.step;
|
||||
chain->add_parameter(i, shader->num_parameters, meta_param.id);
|
||||
shader->num_parameters++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user