summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2018-02-13 14:29:50 -0800
committerChris Loer <chris.loer@mapbox.com>2018-02-14 10:55:16 -0800
commitf7217799631dc3e49c59836540f7de5f951f605a (patch)
tree5cbbcca2aeeeff9c2ed71ba32e6cc82b522bd24b
parent7081c9dfdb041c002d8126bf64b5b5c1fd0d456d (diff)
downloadqtlocation-mapboxgl-f7217799631dc3e49c59836540f7de5f951f605a.tar.gz
[core] fix onLowMemory to release GL buffers
Context cleanup must be called _after_ render sources release tiles.
-rw-r--r--src/mbgl/renderer/renderer_impl.cpp2
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();
}