summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author algestam <henrik@algestam.se>2019-10-28 23:27:24 +0100
committer Vas Crabb <vas@vastheman.com>2019-10-29 12:47:43 +1100
commitb085530756fbd23576dc5fc9b00829e7ceb5c0a1 (patch)
tree45fea97bb410ccab12f58397de484d2d801140b6
parenta529dcbfd3f5af0cb44314bf56442d5e4a108aa8 (diff)
bgfx: fix resource leak (nw) (#5820)
-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);
}