From 9095035532bf69edd52613ab6210f5db5d161660 Mon Sep 17 00:00:00 2001 From: Samuliak Date: Wed, 20 Nov 2024 19:30:30 +0100 Subject: [PATCH] only set array length for texture arrays --- src/Cafe/HW/Latte/Renderer/Metal/LatteTextureMtl.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Cafe/HW/Latte/Renderer/Metal/LatteTextureMtl.cpp b/src/Cafe/HW/Latte/Renderer/Metal/LatteTextureMtl.cpp index d8c52d4d..da00d7ec 100644 --- a/src/Cafe/HW/Latte/Renderer/Metal/LatteTextureMtl.cpp +++ b/src/Cafe/HW/Latte/Renderer/Metal/LatteTextureMtl.cpp @@ -64,15 +64,11 @@ LatteTextureMtl::LatteTextureMtl(class MetalRenderer* mtlRenderer, Latte::E_DIM { desc->setDepth(effectiveBaseDepth); } - else if (textureType == MTL::TextureTypeCube) - { - // Do nothing - } else if (textureType == MTL::TextureTypeCubeArray) { desc->setArrayLength(effectiveBaseDepth / 6); } - else + else if (textureType == MTL::TextureType2DArray) { desc->setArrayLength(effectiveBaseDepth); }