diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-01-16 14:43:23 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-01-16 14:43:44 +0100 |
commit | 9e9640e4ac961e6f52d163cb41ca9d7b26fe84aa (patch) | |
tree | 6d35293654aadad2a590cbbcee9291d209fd5f16 /src | |
parent | c01719bc04c759d66be32d534d03057366c7f1b1 (diff) | |
download | qtlocation-mapboxgl-9e9640e4ac961e6f52d163cb41ca9d7b26fe84aa.tar.gz |
fix wiggle at high zooms
Diffstat (limited to 'src')
-rw-r--r-- | src/map/transform.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/transform.cpp b/src/map/transform.cpp index 3c028be149..6dbfad1711 100644 --- a/src/map/transform.cpp +++ b/src/map/transform.cpp @@ -141,8 +141,7 @@ void transform::matrixFor(float matrix[16], const vec3<int32_t>& id) const { mat4_rotate_z(matrix, matrix, angle); mat4_translate(matrix, matrix, -0.5f * (float)width, -0.5f * (float)height, 0); - mat4_translate(matrix, matrix, pixel_x(), pixel_y(), 0); - mat4_translate(matrix, matrix, id.x * tile_size, id.y * tile_size, 0); + mat4_translate(matrix, matrix, pixel_x() + id.x * tile_size, pixel_y() + id.y * tile_size, 0); // TODO: Get rid of the 8 (scaling from 4096 to 512 px tile size); mat4_scale(matrix, matrix, scale / tile_scale / 8, scale / tile_scale / 8, 1); |