mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
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
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue