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
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ gfx::source_texture::source_texture(std::shared_ptr<obs::source> child, std::sha
throw std::runtime_error("parent is contained in child");
}
this->child = child;
this->parent = parent;
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)