mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
filter-dynamic-mask: Don't crash if a texture is missing
When copying or re-ordering filters, an occasional crash can be observed due to the rendering not being possible yet. With this, it will simply revert back to the original source instead of crashing.
This commit is contained in:
parent
ccc4c6ea22
commit
95b1e81ee5
1 changed files with 4 additions and 0 deletions
|
@ -477,6 +477,10 @@ void filter::dynamic_mask::dynamic_mask_instance::video_render(gs_effect_t* in_e
|
||||||
obs_source_skip_video_filter(this->self);
|
obs_source_skip_video_filter(this->self);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!this->filter_texture->get_object() || !this->input_texture->get_object() || !this->final_texture->get_object()) {
|
||||||
|
obs_source_skip_video_filter(this->self);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Draw source
|
// Draw source
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue