diff options
author | Ansis Brammanis <brammanis@gmail.com> | 2015-08-26 11:14:08 -0400 |
---|---|---|
committer | Justin R. Miller <incanus@codesorcery.net> | 2015-09-11 15:13:45 -0700 |
commit | b05f5c5f7fbb9fa79b068e6a265e3d6c2a77026b (patch) | |
tree | d4477658122404f8eebdf58b43a2feee283fd42a /src/mbgl/util/mat4.cpp | |
parent | 7971861aa5b0e5941dfdd0d78a54bc3aee9aee77 (diff) | |
download | qtlocation-mapboxgl-b05f5c5f7fbb9fa79b068e6a265e3d6c2a77026b.tar.gz |
increase precision for coordinate conversions
This fixes the earthquakes while panning at high zoom levels.
Cherry-picked from 9607171612c4a40e41eddaff5230ad571571a5b9 on the perspective-improved-gestures branch.
Diffstat (limited to 'src/mbgl/util/mat4.cpp')
-rw-r--r-- | src/mbgl/util/mat4.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/util/mat4.cpp b/src/mbgl/util/mat4.cpp index 123c8464fd..0934cd081e 100644 --- a/src/mbgl/util/mat4.cpp +++ b/src/mbgl/util/mat4.cpp @@ -46,7 +46,7 @@ void matrix::identity(mat4& out) { } bool matrix::invert(mat4& out, mat4& a) { - float a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], + double a00 = a[0], a01 = a[1], a02 = a[2], a03 = a[3], a10 = a[4], a11 = a[5], a12 = a[6], a13 = a[7], a20 = a[8], a21 = a[9], a22 = a[10], a23 = a[11], a30 = a[12], a31 = a[13], a32 = a[14], a33 = a[15], |