mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-03-27 22:00:23 -06:00
Latte: Force height of 1D textures to 1
This commit is contained in:
parent
556fc24896
commit
18dd75c1f5
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user