mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-06-01 12:15:13 -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;
|
depth = 1;
|
||||||
}
|
}
|
||||||
uint32 height = word1.get_HEIGHT() + 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()))
|
if (Latte::IsCompressedFormat(word1.get_DATA_FORMAT()))
|
||||||
pitch /= 4;
|
pitch /= 4;
|
||||||
// view slice
|
// view slice
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user