mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-28 22:33:00 +00:00
parent
268a601bac
commit
9fb75fc4f2
1 changed files with 1 additions and 4 deletions
|
@ -59,14 +59,11 @@ dynamic_mask_instance::dynamic_mask_instance(obs_data_t* settings, obs_source_t*
|
|||
_final_rt = std::make_shared<gs::rendertarget>(GS_RGBA, GS_ZS_NONE);
|
||||
|
||||
{
|
||||
char* file = obs_module_file("effects/channel-mask.effect");
|
||||
try {
|
||||
_effect = gs::effect::create(file);
|
||||
_effect = gs::effect::create(streamfx::data_file_path("effects/channel-mask.effect").u8string());
|
||||
} catch (const std::exception& ex) {
|
||||
DLOG_ERROR("Loading channel mask effect failed with error(s):\n%s", ex.what());
|
||||
}
|
||||
assert(_effect != nullptr);
|
||||
bfree(file);
|
||||
}
|
||||
|
||||
update(settings);
|
||||
|
|
Loading…
Reference in a new issue