From df281e645f9635e3e16d0a964a308aef2446ab89 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Sat, 26 Dec 2020 12:54:07 -0500 Subject: [PATCH] NUTEXB : Fix different non swizzled surface levels --- File_Format_Library/FileFormats/Texture/NUTEXB.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/File_Format_Library/FileFormats/Texture/NUTEXB.cs b/File_Format_Library/FileFormats/Texture/NUTEXB.cs index 192320f9..0954a0e9 100644 --- a/File_Format_Library/FileFormats/Texture/NUTEXB.cs +++ b/File_Format_Library/FileFormats/Texture/NUTEXB.cs @@ -563,7 +563,7 @@ namespace FirstPlugin public override byte[] GetImageData(int ArrayLevel = 0, int MipLevel = 0, int DepthLevel = 0) { if (!Runtime.NUTEXBSettings.IsSwizzled) - return DDS.GetArrayFaces(this, ImageData, 1)[ArrayLevel].mipmaps[0]; + return DDS.GetArrayFaces(this, ImageData, ArrayCount)[ArrayLevel].mipmaps[MipLevel]; return TegraX1Swizzle.GetImageData(this, ImageData, ArrayLevel, MipLevel, DepthLevel, 1); }