summaryrefslogtreecommitdiff
path: root/platform/darwin
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2020-01-15 16:30:34 +0200
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2020-01-22 14:30:26 +0200
commitd24c1d625af61328b8ada2d005ab3f9e659a2c69 (patch)
tree90be4d179a0177833b1322fc8f913e48592ab44d /platform/darwin
parent5af128f205a404128e804f5c82ecf748a52dac9c (diff)
downloadqtlocation-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/darwin')
-rw-r--r--platform/darwin/src/MGLRendererFrontend.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLRendererFrontend.h b/platform/darwin/src/MGLRendererFrontend.h
index 1358f5fafa..e2b8260fd1 100644
--- a/platform/darwin/src/MGLRendererFrontend.h
+++ b/platform/darwin/src/MGLRendererFrontend.h
@@ -54,7 +54,7 @@ public:
// 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_);
}
mbgl::Renderer* getRenderer() {