mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-11 06:15:05 +00:00
filter/shader: Initialize with given data
Ignoring the data parameter during initialization results in duplication and some third party plugins not working as expected, so it's better to not ignore it. Fixes #315
This commit is contained in:
parent
17ffbdc55e
commit
3c2fbf2dc4
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,8 @@ shader_instance::shader_instance(obs_data_t* data, obs_source_t* self) : obs::so
|
||||||
{
|
{
|
||||||
_fx = std::make_shared<gfx::shader::shader>(self, gfx::shader::shader_mode::Filter);
|
_fx = std::make_shared<gfx::shader::shader>(self, gfx::shader::shader_mode::Filter);
|
||||||
_rt = std::make_shared<gs::rendertarget>(GS_RGBA, GS_ZS_NONE);
|
_rt = std::make_shared<gs::rendertarget>(GS_RGBA, GS_ZS_NONE);
|
||||||
|
|
||||||
|
update(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
shader_instance::~shader_instance() {}
|
shader_instance::~shader_instance() {}
|
||||||
|
|
Loading…
Reference in a new issue