From 6b7ef2d3eddcbb849e71f9ee9ca143176de95ae7 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Thu, 24 Jan 2019 00:12:42 +0100 Subject: [PATCH] gfx-source-texture: Allocate a render target in constructor Can't really render without one. --- source/gfx-source-texture.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/gfx-source-texture.cpp b/source/gfx-source-texture.cpp index bf4a499..87255b0 100644 --- a/source/gfx-source-texture.cpp +++ b/source/gfx-source-texture.cpp @@ -77,7 +77,8 @@ gfx::source_texture::source_texture(std::shared_ptr 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_RGBA, GS_ZS_NONE); } gfx::source_texture::source_texture(std::shared_ptr child, obs_source_t* _parent)