mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
filter/upscaling: Set correct parameters to the appropriate textures
This commit is contained in:
parent
26d854b7ce
commit
a7fd867be6
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue