Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
height not width, fixes #1038
Browse files Browse the repository at this point in the history
  • Loading branch information
ansis committed Mar 25, 2015
1 parent a16fc1c commit 2492279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mbgl/geometry/sprite_atlas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Rect<SpriteAtlas::dimension> SpriteAtlas::allocateImage(const size_t pixel_width
// This is so we can scale down the texture coordinates and pack them
// into 2 bytes rather than 4 bytes.
const uint16_t pack_width = (pixel_width + 1) + (4 - (pixel_width + 1) % 4);
const uint16_t pack_height = (pixel_height + 1) + (4 - (pixel_width + 1) % 4);
const uint16_t pack_height = (pixel_height + 1) + (4 - (pixel_height + 1) % 4);

// We have to allocate a new area in the bin, and store an empty image in it.
// Add a 1px border around every image.
Expand Down

0 comments on commit 2492279

Please sign in to comment.