From ca1e26fd202efada64b63dd86cc0cf60fc11ca1d Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sun, 23 Dec 2018 23:48:08 +0100 Subject: [PATCH] filter-shadow-sdf: Fix crash when adding source I'm not sure how this one passed by me. Or how this worked, as I have screenshots and videos of it working before applying this fix. --- source/filter-shadow-sdf.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/filter-shadow-sdf.cpp b/source/filter-shadow-sdf.cpp index 96c95e6..609da31 100644 --- a/source/filter-shadow-sdf.cpp +++ b/source/filter-shadow-sdf.cpp @@ -223,10 +223,10 @@ void filter::shadow_sdf::shadow_sdf_instance::video_render(gs_effect_t*) } else { throw std::exception("failed to process source"); } - m_input->get_texture(this->m_source_texture); - if (!this->m_source_texture) { - throw std::exception("failed to draw source"); - } + } + m_input->get_texture(this->m_source_texture); + if (!this->m_source_texture) { + throw std::exception("failed to draw source"); } // Generate SDF Buffers