[core] fix onLowMemory to release GL buffers

Context cleanup must be called _after_ render sources release tiles.
This commit is contained in:
Chris Loer
2018-02-13 14:29:50 -08:00
committed by Chris Loer
parent 7081c9dfdb
commit f721779963

View File

@@ -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();
}