Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[core] fix onLowMemory to release GL buffers
Browse files Browse the repository at this point in the history
Context cleanup must be called _after_ render sources release tiles.
  • Loading branch information
ChrisLoer committed Feb 13, 2018
1 parent aefc3da commit b4fb4f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mbgl/renderer/renderer_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit b4fb4f6

Please sign in to comment.