mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-27 22:03:01 +00:00
filter-displacement: Don't crash if the file can't be found
Fixes a user reported issue where obs-studio began crashing out of nowhere.
This commit is contained in:
parent
bbcde070f3
commit
f6687c7ed6
1 changed files with 4 additions and 1 deletions
|
@ -185,7 +185,10 @@ void filter::displacement::displacement_instance::validate_file_texture(std::str
|
|||
do_update = !m_file_texture || do_update;
|
||||
|
||||
if (do_update) {
|
||||
m_file_texture = std::make_shared<gs::texture>(m_file_name);
|
||||
try {
|
||||
m_file_texture = std::make_shared<gs::texture>(m_file_name);
|
||||
} catch (...) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue