diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-07-08 16:33:53 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-07-11 18:39:50 -0700 |
commit | fe99295970a1f5e2d8834b35ce327938a1738240 (patch) | |
tree | b7da6b36111f1fd8e107b4515e5d36f053e6af20 /src | |
parent | ae838b397b6e5ca85d30fe1a8b9ccbb74864a7a6 (diff) | |
download | qtlocation-mapboxgl-fe99295970a1f5e2d8834b35ce327938a1738240.tar.gz |
[core] Remove unused
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/renderer/painter.cpp | 5 | ||||
-rw-r--r-- | src/mbgl/renderer/painter.hpp | 9 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/mbgl/renderer/painter.cpp b/src/mbgl/renderer/painter.cpp index c0c2da9c4d..0975203c50 100644 --- a/src/mbgl/renderer/painter.cpp +++ b/src/mbgl/renderer/painter.cpp @@ -89,11 +89,6 @@ void Painter::render(const Style& style, const FrameData& frame_, SpriteAtlas& a pixelsToGLUnits[1] *= -1; } - // The native matrix is a 1:1 matrix that paints the coordinates at the - // same screen position as the vertex specifies. - matrix::identity(nativeMatrix); - matrix::multiply(nativeMatrix, projMatrix, nativeMatrix); - frameHistory.record(frame.timePoint, state.getZoom(), frame.mapMode == MapMode::Continuous ? util::DEFAULT_FADE_DURATION : Milliseconds(0)); diff --git a/src/mbgl/renderer/painter.hpp b/src/mbgl/renderer/painter.hpp index 700ddf2deb..3bb05a66dc 100644 --- a/src/mbgl/renderer/painter.hpp +++ b/src/mbgl/renderer/painter.hpp @@ -142,18 +142,9 @@ private: bool isOverdraw() const { return frame.debugOptions & MapDebugOptions::Overdraw; } mat4 projMatrix; - mat4 nativeMatrix; std::array<float, 2> pixelsToGLUnits; - // used to composite images and flips the geometry upside down - const mat4 flipMatrix = []{ - mat4 flip; - matrix::ortho(flip, 0, util::EXTENT, -util::EXTENT, 0, 0, 1); - matrix::translate(flip, flip, 0, -util::EXTENT, 0); - return flip; - }(); - const mat4 identityMatrix = []{ mat4 identity; matrix::identity(identity); |