[core] Pass std::shared_ptr<UpdateParameters> to the render orchestrator

So that it can retain ownership of the given parameters.
This commit is contained in:
Mikhail Pozdnyakov
2020-01-15 16:30:34 +02:00
parent 5af128f205
commit d24c1d625a
9 changed files with 71 additions and 70 deletions

View File

@@ -84,7 +84,7 @@ void QMapboxGLMapRenderer::render()
// The OpenGL implementation automatically enables the OpenGL context for us.
mbgl::gfx::BackendScope scope(m_backend, mbgl::gfx::BackendScope::ScopeType::Implicit);
m_renderer->render(*params);
m_renderer->render(params);
if (m_forceScheduler) {
getScheduler()->processEvents();