mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-11 06:15:05 +00:00
gs-effect: Fix typo from refactor
This commit is contained in:
parent
b54e95527a
commit
e7b46063aa
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ gs::effect_parameter gs::effect::get_parameter(size_t idx)
|
|||
|
||||
gs::effect_parameter gs::effect::get_parameter(std::string name)
|
||||
{
|
||||
for (size_t idx = 0; idx < count_techniques(); idx++) {
|
||||
for (size_t idx = 0; idx < count_parameters(); idx++) {
|
||||
auto ptr = get()->params.array + idx;
|
||||
if (strcmp(ptr->name, name.c_str()) == 0) {
|
||||
return gs::effect_parameter(ptr, this);
|
||||
|
|
Loading…
Reference in a new issue