transitions/shader: Fix order of assignment

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-05-14 03:14:54 +02:00
parent c1b3972550
commit 4e24444524

View file

@ -86,7 +86,6 @@ void shader_instance::video_render(gs_effect_t* effect)
gs::debug_marker gdmp{gs::debug_color_source, "Shader Transition '%s'", obs_source_get_name(_self)};
#endif
_fx->prepare_render();
obs_transition_video_render(
_self, [](void* data, gs_texture_t* a, gs_texture_t* b, float t, std::uint32_t cx, std::uint32_t cy) {
reinterpret_cast<shader_instance*>(data)->transition_render(a, b, t, cx, cy);
@ -99,6 +98,7 @@ void shader_instance::transition_render(gs_texture_t* a, gs_texture_t* b, float_
_fx->set_input_b(std::make_shared<::gs::texture>(b, false));
_fx->set_transition_time(t);
_fx->set_transition_size(cx, cy);
_fx->prepare_render();
_fx->render();
}