Skip to content

Commit

Permalink
IMAGES: Correctly set mipmap data size for unpacked grayscale TXBs
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Jan 21, 2017
1 parent cc221a4 commit b0b43c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/images/txb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ void TXB::readData(Common::SeekableReadStream &txb, byte encoding) {
}

(*mipMap)->data.swap(tmp1);
(*mipMap)->size = newSize;

} else if (swizzled) {
Common::ScopedArray<byte> tmp(new byte[(*mipMap)->size]);
Expand Down

0 comments on commit b0b43c0

Please sign in to comment.