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:
Michael Fabian 'Xaymar' Dirks 2020-12-04 12:59:46 +01:00
parent 17ffbdc55e
commit 3c2fbf2dc4
1 changed files with 2 additions and 0 deletions

View File

@ -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);
_rt = std::make_shared<gs::rendertarget>(GS_RGBA, GS_ZS_NONE);
update(data);
}
shader_instance::~shader_instance() {}