diff options
| author | AltoXorg <atrl101@yahoo.com> | 2024-04-10 13:15:01 +0800 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2024-04-13 00:02:41 -0600 |
| commit | 4513708c95af671028b11f19ae12e963a0989bd4 (patch) | |
| tree | b679bd13ff71d93df4573b9dc7aaceaa1d3756f8 /src | |
| parent | a64a200093fc1ab00cdcc3717e1d75108832743f (diff) | |
Fix CI texture depth when png export
Diffstat (limited to 'src')
| -rw-r--r-- | src/factories/TextureFactory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/factories/TextureFactory.cpp b/src/factories/TextureFactory.cpp index 5eb188d..d2166d4 100644 --- a/src/factories/TextureFactory.cpp +++ b/src/factories/TextureFactory.cpp @@ -260,7 +260,7 @@ ExportResult TextureModdingExporter::Export(std::ostream&write, std::shared_ptr< auto palettePtr = tlutTextureMap[tlut]; if (palettePtr) { - convert_raw_to_ci8(&raw, &size, texture->mBuffer.data(), (uint8_t *)palettePtr->mBuffer.data(), 0, texture->mWidth, texture->mHeight, palettePtr->mFormat.depth); + convert_raw_to_ci8(&raw, &size, texture->mBuffer.data(), (uint8_t *)palettePtr->mBuffer.data(), 0, texture->mWidth, texture->mHeight, texture->mFormat.depth, palettePtr->mFormat.depth); } else { auto symbol = GetSafeNode<std::string>(node, "symbol"); |
