summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd
diff options
context:
space:
mode:
author algestam <henrik@algestam.se>2019-10-28 23:27:24 +0100
committer MooglyGuy <MooglyGuy@users.noreply.github.com>2019-10-28 23:27:24 +0100
commita83da80eb836ea5b863dc57b8f0c8d878ec26303 (patch)
tree56d5bbff929ad92b31ba4db5fb7a05580bc77381 /src/osd
parentd660d1d5b3e7b9a39042bf6eb925294fd8a3bda1 (diff)
bgfx: fix resource leak (nw) (#5820)
Diffstat (limited to 'src/osd')
-rw-r--r--src/osd/modules/render/bgfx/chain.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osd/modules/render/bgfx/chain.cpp b/src/osd/modules/render/bgfx/chain.cpp
index 906e715e177..940bf85d81d 100644
--- a/src/osd/modules/render/bgfx/chain.cpp
+++ b/src/osd/modules/render/bgfx/chain.cpp
@@ -168,5 +168,6 @@ void bgfx_chain::prepend_converter(bgfx_effect *effect, chain_manager &chains)
const uint32_t screen_width = chains.targets().width(TARGET_STYLE_GUEST, m_screen_index);
const uint32_t screen_height = chains.targets().height(TARGET_STYLE_GUEST, m_screen_index);
+ m_targets.destroy_target("screen", m_screen_index);
m_targets.create_target("screen", bgfx::TextureFormat::RGBA8, screen_width, screen_height, TARGET_STYLE_GUEST, true, false, 1, m_screen_index);
}