Merge pull request #1418 from mapbox/1418-correct-aspect-ratio-after-rotation
Screen stretched on rotation
This commit is contained in:
@@ -203,6 +203,9 @@ void Painter::render(const Style& style, TransformState state_, TimePoint time)
|
||||
}
|
||||
}
|
||||
|
||||
resize();
|
||||
changeMatrix();
|
||||
|
||||
// Figure out what buckets we have to draw and what order we have to draw them in.
|
||||
const auto order = determineRenderOrder(style);
|
||||
|
||||
@@ -238,8 +241,6 @@ void Painter::render(const Style& style, TransformState state_, TimePoint time)
|
||||
}
|
||||
|
||||
clear();
|
||||
resize();
|
||||
changeMatrix();
|
||||
|
||||
drawClippingMasks(sources);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user