summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mbgl/map/map.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp
index e6282ae107..211f2e264e 100644
--- a/src/mbgl/map/map.cpp
+++ b/src/mbgl/map/map.cpp
@@ -75,6 +75,7 @@ public:
RenderState renderState = RenderState::Never;
Transform transform;
+ TransformState state;
const MapMode mode;
const GLContextMode contextMode;
@@ -279,6 +280,7 @@ void Map::Impl::update() {
render(stillImageRequest->view);
}
+ state = transform.getState();
updateFlags = Update::Nothing;
// When no transition is in progress, updateTransitions returns Nothing, which means we don't
@@ -292,7 +294,7 @@ void Map::Impl::update() {
void Map::Impl::render(View& view) {
if (!painter) {
- painter = std::make_unique<Painter>(backend.getContext(), transform.getState(), pixelRatio);
+ painter = std::make_unique<Painter>(backend.getContext(), state, pixelRatio);
}
FrameData frameData { timePoint,