mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 12:42:34 +01:00
Metal: Fixed 3d texture create (#3507)
This commit is contained in:
@@ -3174,8 +3174,6 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
||||
m_ptrStencil = s_renderMtl->m_device.newTextureWithDescriptor(desc);
|
||||
}
|
||||
|
||||
MTL_RELEASE(desc, 0);
|
||||
|
||||
uint8_t* temp = NULL;
|
||||
if (convert)
|
||||
{
|
||||
@@ -3252,6 +3250,8 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
||||
depth >>= 1;
|
||||
}
|
||||
}
|
||||
|
||||
MTL_RELEASE(desc, 0);
|
||||
|
||||
if (NULL != temp)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user