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:
parent
95fdcff3a9
commit
ca1e26fd20
|
|
@ -223,10 +223,10 @@ void filter::shadow_sdf::shadow_sdf_instance::video_render(gs_effect_t*)
|
||||||
} else {
|
} else {
|
||||||
throw std::exception("failed to process source");
|
throw std::exception("failed to process source");
|
||||||
}
|
}
|
||||||
m_input->get_texture(this->m_source_texture);
|
}
|
||||||
if (!this->m_source_texture) {
|
m_input->get_texture(this->m_source_texture);
|
||||||
throw std::exception("failed to draw source");
|
if (!this->m_source_texture) {
|
||||||
}
|
throw std::exception("failed to draw source");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate SDF Buffers
|
// Generate SDF Buffers
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue