mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-29 11:01:23 +00:00
gfx-source-texture: Allocate a render target in constructor
Can't really render without one.
This commit is contained in:
parent
bf35b54957
commit
6b7ef2d3ed
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue