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.
This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2018-12-23 23:48:08 +01:00
parent 95fdcff3a9
commit ca1e26fd20

View file

@ -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