D3D11/VK/Metal/GL: Fixed dangling framebuffer handle on destroy. (#3827)

This commit is contained in:
Branimir Karadžić
2026-07-12 20:30:42 -07:00
committed by GitHub
parent c5ed0238b4
commit 7c6a7e5f00
5 changed files with 66 additions and 9 deletions
+5
View File
@@ -2009,6 +2009,11 @@ namespace bgfx { namespace d3d11
void destroyFrameBuffer(FrameBufferHandle _handle) override
{
if (m_fbh.idx == _handle.idx)
{
m_fbh = BGFX_INVALID_HANDLE;
}
uint16_t denseIdx = m_frameBuffers[_handle.idx].destroy();
if (UINT16_MAX != denseIdx)
{