diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-07-12 11:36:22 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-07-12 11:36:26 +0300 |
commit | e197540f9a6a48311eac4d8033fc0abb92b41d16 (patch) | |
tree | 002e25ec54d5de0cb9f9339bdd2335874bd57d47 /src | |
parent | fe99295970a1f5e2d8834b35ce327938a1738240 (diff) | |
download | qtlocation-mapboxgl-e197540f9a6a48311eac4d8033fc0abb92b41d16.tar.gz |
[core] Fix matrix when panning around the world
Partially reverts commit 1d46e83.
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/map/transform_state.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/map/transform_state.cpp b/src/mbgl/map/transform_state.cpp index 86ffc254d8..eb66513626 100644 --- a/src/mbgl/map/transform_state.cpp +++ b/src/mbgl/map/transform_state.cpp @@ -16,7 +16,7 @@ TransformState::TransformState(ConstrainMode constrainMode_, ViewportMode viewpo #pragma mark - Matrix void TransformState::matrixFor(mat4& matrix, const UnwrappedTileID& tileID) const { - const uint32_t tileScale = 1u << tileID.canonical.z; + const uint64_t tileScale = 1ull << tileID.canonical.z; const double s = worldSize() / tileScale; matrix::identity(matrix); |