summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAltoXorg <atrl101@yahoo.com>2024-04-10 13:15:01 +0800
committerLywx <kiritodev01@gmail.com>2024-04-13 00:02:41 -0600
commit4513708c95af671028b11f19ae12e963a0989bd4 (patch)
treeb679bd13ff71d93df4573b9dc7aaceaa1d3756f8 /src
parenta64a200093fc1ab00cdcc3717e1d75108832743f (diff)
Fix CI texture depth when png export
Diffstat (limited to 'src')
-rw-r--r--src/factories/TextureFactory.cpp2
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");