From d7e66b17f1367a416128dd9b601730d03edf05c7 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Wed, 7 Aug 2019 19:22:10 +0200 Subject: [PATCH] filter-shader: Don't ignore all properties --- source/filters/filter-shader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/filters/filter-shader.cpp b/source/filters/filter-shader.cpp index 998bbe60..458acfda 100644 --- a/source/filters/filter-shader.cpp +++ b/source/filters/filter-shader.cpp @@ -217,11 +217,11 @@ void filter::shader::shader_instance::deactivate() bool filter::shader::shader_instance::valid_param(std::shared_ptr param) { - if (strcmpi(param->get_name().c_str(), "ImageSource")) + if (strcmpi(param->get_name().c_str(), "ImageSource") == 0) return false; - if (strcmpi(param->get_name().c_str(), "ImageSource_Size")) + if (strcmpi(param->get_name().c_str(), "ImageSource_Size") == 0) return false; - if (strcmpi(param->get_name().c_str(), "ImageSource_Texel")) + if (strcmpi(param->get_name().c_str(), "ImageSource_Texel") == 0) return false; return true; }