mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Fix MSAA texture pointer not being freed (#3138)
Texture::destroy only freed m_ptr, not m_ptrMsaa. This caused problems when texture IDs were reused, because a newly- created texture would sometimes have m_ptrMsaa.
This commit is contained in:
@@ -976,6 +976,7 @@ namespace bgfx { namespace mtl
|
||||
if (0 == (m_flags & BGFX_SAMPLER_INTERNAL_SHARED))
|
||||
{
|
||||
MTL_RELEASE(m_ptr);
|
||||
MTL_RELEASE(m_ptrMsaa);
|
||||
}
|
||||
MTL_RELEASE(m_ptrStencil);
|
||||
for (uint32_t ii = 0; ii < m_numMips; ++ii)
|
||||
|
||||
Reference in New Issue
Block a user