From a7fd867be6aa736d082c9baa5c55b3d7b94cea83 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sun, 24 Oct 2021 22:01:30 +0200 Subject: [PATCH] filter/upscaling: Set correct parameters to the appropriate textures --- source/filters/filter-upscaling.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/filters/filter-upscaling.cpp b/source/filters/filter-upscaling.cpp index 71202e4a..c4a598fe 100644 --- a/source/filters/filter-upscaling.cpp +++ b/source/filters/filter-upscaling.cpp @@ -323,11 +323,11 @@ void upscaling_instance::video_render(gs_effect_t* effect) #ifdef ENABLE_PROFILING ::streamfx::obs::gs::debug_marker profiler1{::streamfx::obs::gs::debug_color_render, "Render"}; #endif - if (_standard_effect->has_parameter("Channel0", ::streamfx::obs::gs::effect_parameter::type::Texture)) { - _standard_effect->get_parameter("Channel0").set_texture(_output); + if (_standard_effect->has_parameter("InputA", ::streamfx::obs::gs::effect_parameter::type::Texture)) { + _standard_effect->get_parameter("InputA").set_texture(_output); } - if (_standard_effect->has_parameter("Channel1", ::streamfx::obs::gs::effect_parameter::type::Texture)) { - _standard_effect->get_parameter("Channel1").set_texture(_input->get_texture()); + if (_standard_effect->has_parameter("InputB", ::streamfx::obs::gs::effect_parameter::type::Texture)) { + _standard_effect->get_parameter("InputB").set_texture(_input->get_texture()); } while (gs_effect_loop(_standard_effect->get_object(), "RestoreAlpha")) { gs_draw_sprite(nullptr, 0, _out_size.first, _out_size.second);