mirror of https://github.com/Xaymar/obs-StreamFX
gfx-source-texture: Allocate a render target in constructor
Can't really render without one.
This commit is contained in:
parent
bf35b54957
commit
6b7ef2d3ed
|
@ -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 New Issue