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

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); _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() {}