mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-10-26 02:35:27 +00:00
D3D11/VK/Metal/GL: Fixed dangling framebuffer handle on destroy. (#3827)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user