gfx-source-texture: Allocate a render target in constructor

Can't really render without one.
This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2019-01-24 00:12:42 +01:00
parent bf35b54957
commit 6b7ef2d3ed

View file

@ -78,6 +78,7 @@ gfx::source_texture::source_texture(std::shared_ptr<obs::source> child, std::sha
}
this->child = child;
this->parent = parent;
this->render_target = std::make_shared<gs::rendertarget>(GS_RGBA, GS_ZS_NONE);
}
gfx::source_texture::source_texture(std::shared_ptr<obs::source> child, obs_source_t* _parent)