Skip to content

Commit 8a60697

Browse files
authored
Metal: Fixed 3d texture create (#3507)
1 parent 4a28b87 commit 8a60697

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderer_mtl.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3174,8 +3174,6 @@ void writeString(bx::WriterI* _writer, const char* _str)
31743174
m_ptrStencil = s_renderMtl->m_device.newTextureWithDescriptor(desc);
31753175
}
31763176

3177-
MTL_RELEASE(desc, 0);
3178-
31793177
uint8_t* temp = NULL;
31803178
if (convert)
31813179
{
@@ -3252,6 +3250,8 @@ void writeString(bx::WriterI* _writer, const char* _str)
32523250
depth >>= 1;
32533251
}
32543252
}
3253+
3254+
MTL_RELEASE(desc, 0);
32553255

32563256
if (NULL != temp)
32573257
{

0 commit comments

Comments
 (0)