Skip to content

Commit

Permalink
Fixed incorrect width in width!=height warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dedmen committed Sep 1, 2019
1 parent 09077b0 commit b384490
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TextureFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ bool MipMap::readMipmap(std::istream& input, uint32_t expectedDataSize) {
input.read(reinterpret_cast<char*>(&height), 2);
if (!width || !height) return false;

if (width != height) {
std::cout << "\tWARN width!=height " << width << "!=" << height << "\n";
if ((width & 0x7FFF) != height) {
std::cout << "\tWARN width!=height " << (width & 0x7FFF) << "!=" << height << "\n";
}

uint32_t length = 0;
Expand Down

0 comments on commit b384490

Please sign in to comment.