filter/upscaling: Set correct parameters to the appropriate textures

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2021-10-24 22:01:30 +02:00
parent 26d854b7ce
commit a7fd867be6
1 changed files with 4 additions and 4 deletions

View File

@ -323,11 +323,11 @@ void upscaling_instance::video_render(gs_effect_t* effect)
#ifdef ENABLE_PROFILING #ifdef ENABLE_PROFILING
::streamfx::obs::gs::debug_marker profiler1{::streamfx::obs::gs::debug_color_render, "Render"}; ::streamfx::obs::gs::debug_marker profiler1{::streamfx::obs::gs::debug_color_render, "Render"};
#endif #endif
if (_standard_effect->has_parameter("Channel0", ::streamfx::obs::gs::effect_parameter::type::Texture)) { if (_standard_effect->has_parameter("InputA", ::streamfx::obs::gs::effect_parameter::type::Texture)) {
_standard_effect->get_parameter("Channel0").set_texture(_output); _standard_effect->get_parameter("InputA").set_texture(_output);
} }
if (_standard_effect->has_parameter("Channel1", ::streamfx::obs::gs::effect_parameter::type::Texture)) { if (_standard_effect->has_parameter("InputB", ::streamfx::obs::gs::effect_parameter::type::Texture)) {
_standard_effect->get_parameter("Channel1").set_texture(_input->get_texture()); _standard_effect->get_parameter("InputB").set_texture(_input->get_texture());
} }
while (gs_effect_loop(_standard_effect->get_object(), "RestoreAlpha")) { while (gs_effect_loop(_standard_effect->get_object(), "RestoreAlpha")) {
gs_draw_sprite(nullptr, 0, _out_size.first, _out_size.second); gs_draw_sprite(nullptr, 0, _out_size.first, _out_size.second);