mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-24 04:15:11 +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
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue