metal - texture array creation bug fix (#1144)

This commit is contained in:
attilaz
2017-05-26 17:13:51 +02:00
committed by Branimir Karadžić
parent d4917fa333
commit c9ab2af0e2

View File

@@ -2438,8 +2438,6 @@ namespace bgfx { namespace mtl
desc.textureType = MTLTextureType2DArray;
m_type = Texture2D;
}
desc.arrayLength = numLayers;
}
else if (imageContainer.m_cubeMap)
{
@@ -2505,6 +2503,7 @@ namespace bgfx { namespace mtl
desc.depth = bx::uint32_max(1,imageContainer.m_depth);
desc.mipmapLevelCount = imageContainer.m_numMips;
desc.sampleCount = 1;
desc.arrayLength = numLayers;
if (s_renderMtl->m_iOS9Runtime || s_renderMtl->m_macOS11Runtime)
{