Skip to content

Commit

Permalink
gltfpack: Fix PNG dimension offsets
Browse files Browse the repository at this point in the history
This is a fallout from zeux#302
  • Loading branch information
zeux committed Jun 7, 2021
1 parent f42cb7a commit ab33ba9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gltf/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ static bool getDimensionsPng(const std::string& data, int& width, int& height)
if (data.compare(12, 4, "IHDR") != 0)
return false;

width = readInt32(data, 18);
height = readInt32(data, 22);
width = readInt32(data, 16);
height = readInt32(data, 20);

return true;
}
Expand Down

0 comments on commit ab33ba9

Please sign in to comment.