From e7b46063aa74bfed3d42980669ee10ae0a654292 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Mon, 16 Dec 2019 22:53:25 +0100 Subject: [PATCH] gs-effect: Fix typo from refactor --- source/obs/gs/gs-effect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/obs/gs/gs-effect.cpp b/source/obs/gs/gs-effect.cpp index ada1a228..c6d0a52e 100644 --- a/source/obs/gs/gs-effect.cpp +++ b/source/obs/gs/gs-effect.cpp @@ -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);