From 4601cf00c7a3e5444438d0d22cbe65f6263e67ce Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Wed, 29 Jan 2014 14:37:04 -0500 Subject: [PATCH] Small bugfix --- IO/src/ImageWriterKTX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IO/src/ImageWriterKTX.cpp b/IO/src/ImageWriterKTX.cpp index bcf14e4..642896a 100644 --- a/IO/src/ImageWriterKTX.cpp +++ b/IO/src/ImageWriterKTX.cpp @@ -142,7 +142,7 @@ bool ImageWriterKTX::WriteImage() { wtr.Write(kvSz); // key value size wtr.Write(orientationKey, strlen(orientationKey) + 1); // key wtr.Write(orientationValue, strlen(orientationValue) + 1); // value - wtr.Write(orientationKey, tkvSz - kvSz); // padding + wtr.Write(orientationKey, tkvSz - kvSz - 4); // padding if(ci && ci->GetFormat() == FasTC::eCompressionFormat_BPTC) { static const uint32 kImageSize = m_Width * m_Height;