[core] Moved Painter::setup() to Painter ctor
This commit is contained in:
@@ -243,11 +243,7 @@ bool MapContext::renderSync(const TransformState& state, const FrameData& frame)
|
||||
// Cleanup OpenGL objects that we abandoned since the last render call.
|
||||
glObjectStore.performCleanup();
|
||||
|
||||
if (!painter) {
|
||||
painter = std::make_unique<Painter>(data);
|
||||
painter->setup();
|
||||
}
|
||||
|
||||
if (!painter) painter = std::make_unique<Painter>(data);
|
||||
painter->render(*style, transformState, frame, data.getAnimationTime());
|
||||
|
||||
if (data.mode == MapMode::Still) {
|
||||
|
||||
Reference in New Issue
Block a user