diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-01-15 16:30:34 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-01-22 14:30:26 +0200 |
commit | d24c1d625af61328b8ada2d005ab3f9e659a2c69 (patch) | |
tree | 90be4d179a0177833b1322fc8f913e48592ab44d /platform/default | |
parent | 5af128f205a404128e804f5c82ecf748a52dac9c (diff) | |
download | qtlocation-mapboxgl-d24c1d625af61328b8ada2d005ab3f9e659a2c69.tar.gz |
[core] Pass std::shared_ptr<UpdateParameters> to the render orchestrator
So that it can retain ownership of the given parameters.
Diffstat (limited to 'platform/default')
-rw-r--r-- | platform/default/src/mbgl/gfx/headless_frontend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/default/src/mbgl/gfx/headless_frontend.cpp b/platform/default/src/mbgl/gfx/headless_frontend.cpp index 5235b2f408..996006bfe2 100644 --- a/platform/default/src/mbgl/gfx/headless_frontend.cpp +++ b/platform/default/src/mbgl/gfx/headless_frontend.cpp @@ -39,7 +39,7 @@ HeadlessFrontend::HeadlessFrontend(Size size_, // Copy the shared pointer here so that the parameters aren't destroyed while `render(...)` is // still using them. auto updateParameters_ = updateParameters; - renderer->render(*updateParameters_); + renderer->render(updateParameters_); auto endTime = mbgl::util::MonotonicTimer::now(); frameTime = (endTime - startTime).count(); |