filter-shader: Don't ignore all properties

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2019-08-07 19:22:10 +02:00
parent b8fc0d5284
commit d7e66b17f1

View file

@ -217,11 +217,11 @@ void filter::shader::shader_instance::deactivate()
bool filter::shader::shader_instance::valid_param(std::shared_ptr<gs::effect_parameter> param) bool filter::shader::shader_instance::valid_param(std::shared_ptr<gs::effect_parameter> param)
{ {
if (strcmpi(param->get_name().c_str(), "ImageSource")) if (strcmpi(param->get_name().c_str(), "ImageSource") == 0)
return false; return false;
if (strcmpi(param->get_name().c_str(), "ImageSource_Size")) if (strcmpi(param->get_name().c_str(), "ImageSource_Size") == 0)
return false; return false;
if (strcmpi(param->get_name().c_str(), "ImageSource_Texel")) if (strcmpi(param->get_name().c_str(), "ImageSource_Texel") == 0)
return false; return false;
return true; return true;
} }