From a83da80eb836ea5b863dc57b8f0c8d878ec26303 Mon Sep 17 00:00:00 2001 From: algestam Date: Mon, 28 Oct 2019 23:27:24 +0100 Subject: bgfx: fix resource leak (nw) (#5820) --- src/osd/modules/render/bgfx/chain.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/osd') 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); } -- cgit v1.2.3