diff options
author | Chris Loer <chris.loer@gmail.com> | 2018-02-13 14:29:50 -0800 |
---|---|---|
committer | Chris Loer <chris.loer@mapbox.com> | 2018-02-14 10:55:16 -0800 |
commit | f7217799631dc3e49c59836540f7de5f951f605a (patch) | |
tree | 5cbbcca2aeeeff9c2ed71ba32e6cc82b522bd24b /src | |
parent | 7081c9dfdb041c002d8126bf64b5b5c1fd0d456d (diff) | |
download | qtlocation-mapboxgl-f7217799631dc3e49c59836540f7de5f951f605a.tar.gz |
[core] fix onLowMemory to release GL buffers
Context cleanup must be called _after_ render sources release tiles.
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/renderer/renderer_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/renderer/renderer_impl.cpp b/src/mbgl/renderer/renderer_impl.cpp index 61e7d17242..9aca5ab978 100644 --- a/src/mbgl/renderer/renderer_impl.cpp +++ b/src/mbgl/renderer/renderer_impl.cpp @@ -724,10 +724,10 @@ std::vector<Feature> Renderer::Impl::querySourceFeatures(const std::string& sour void Renderer::Impl::onLowMemory() { assert(BackendScope::exists()); - backend.getContext().performCleanup(); for (const auto& entry : renderSources) { entry.second->onLowMemory(); } + backend.getContext().performCleanup(); observer->onInvalidate(); } |