From 4b0fca6ecaaaef3dbd91b3f7457c08afdf43bd9b Mon Sep 17 00:00:00 2001 From: castano Date: Mon, 8 Oct 2007 03:21:03 +0000 Subject: [PATCH] Fix endiannes error. --- src/nvimage/BlockDXT.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nvimage/BlockDXT.cpp b/src/nvimage/BlockDXT.cpp index 517bb6c..7b08e4b 100644 --- a/src/nvimage/BlockDXT.cpp +++ b/src/nvimage/BlockDXT.cpp @@ -621,7 +621,9 @@ inline void BlockCTX1::flip2() Stream & nv::operator<<(Stream & stream, BlockDXT1 & block) { - return stream << block.col0.u << block.col1.u << block.indices; + stream << block.col0.u << block.col1.u; + stream.serialize(&block.indices, sizeof(block.indices)); + return stream; } Stream & nv::operator<<(Stream & stream, AlphaBlockDXT3 & block)