From c7d12dadb52c69bf2ada005006cfd0da5a14f615 Mon Sep 17 00:00:00 2001 From: inspectredc Date: Tue, 26 Nov 2024 16:21:01 +0000 Subject: [PATCH] Fix return size --- src/factories/CompressedTextureFactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/factories/CompressedTextureFactory.cpp b/src/factories/CompressedTextureFactory.cpp index 95e2520..c13eb10 100644 --- a/src/factories/CompressedTextureFactory.cpp +++ b/src/factories/CompressedTextureFactory.cpp @@ -192,7 +192,7 @@ ExportResult CompressedTextureCodeExporter::Export(std::ostream &write, std::sha write << "\n"; } - return offset + isize * byteSize; + return offset + compressedSize; } ExportResult CompressedTextureBinaryExporter::Export(std::ostream &write, std::shared_ptr raw, std::string& entryName, YAML::Node &node, std::string* replacement) {