mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
metal - texture array creation bug fix (#1144)
This commit is contained in:
committed by
Branimir Karadžić
parent
d4917fa333
commit
c9ab2af0e2
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user