summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnsis Brammanis <brammanis@gmail.com>2015-03-25 13:23:15 -0700
committerAnsis Brammanis <brammanis@gmail.com>2015-03-25 13:23:15 -0700
commit24922795c58f09bba0407c3690a97d57372ac7ba (patch)
treea1f724804a3a8784dd35236a84287dd37f7ff80b /src
parenta16fc1c0df130ec908687faccd1752dbfe556782 (diff)
downloadqtlocation-mapboxgl-24922795c58f09bba0407c3690a97d57372ac7ba.tar.gz
height not width, fixes #1038
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/geometry/sprite_atlas.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/geometry/sprite_atlas.cpp b/src/mbgl/geometry/sprite_atlas.cpp
index bf31c6e38e..187253b147 100644
--- a/src/mbgl/geometry/sprite_atlas.cpp
+++ b/src/mbgl/geometry/sprite_atlas.cpp
@@ -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.