From 18dd75c1f5abe270062e83e5458c61841a53dedb Mon Sep 17 00:00:00 2001 From: Exzap <13877693+Exzap@users.noreply.github.com> Date: Fri, 20 Feb 2026 18:26:11 +0100 Subject: [PATCH] Latte: Force height of 1D textures to 1 --- src/Cafe/HW/Latte/Core/LatteTextureLegacy.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Cafe/HW/Latte/Core/LatteTextureLegacy.cpp b/src/Cafe/HW/Latte/Core/LatteTextureLegacy.cpp index 25c9f54b..4c11e57c 100644 --- a/src/Cafe/HW/Latte/Core/LatteTextureLegacy.cpp +++ b/src/Cafe/HW/Latte/Core/LatteTextureLegacy.cpp @@ -140,6 +140,8 @@ void LatteTexture_updateTexturesForStage(LatteDecompilerShader* shaderContext, u depth = 1; } uint32 height = word1.get_HEIGHT() + 1; + if (dim == Latte::E_DIM::DIM_1D || dim == Latte::E_DIM::DIM_1D_ARRAY) + height = 1; if (Latte::IsCompressedFormat(word1.get_DATA_FORMAT())) pitch /= 4; // view slice