From eafa403f57ff1db1a1c2510c7ca89d23175b412d Mon Sep 17 00:00:00 2001 From: hyzboy Date: Mon, 27 Sep 2021 12:03:05 +0800 Subject: [PATCH] fixed a bug that I write a incorrect compress type value. --- TextureFileCreater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TextureFileCreater.cpp b/TextureFileCreater.cpp index a839d90..f4752f3 100644 --- a/TextureFileCreater.cpp +++ b/TextureFileCreater.cpp @@ -96,7 +96,7 @@ bool TextureFileCreater::WriteFileHeader(const OSString &old_filename,const uint if(pixel_format->format>ColorFormat::COMPRESS) { dos->WriteUint8(0); - dos->WriteUint16(uint(pixel_format->format)-uint(ColorFormat::COMPRESS)); + dos->WriteUint16(uint(pixel_format->format)-uint(ColorFormat::BC1RGB)); } else {