[ios] run glFlush when reducing memory and don't reduce memory while in background (#14383)

This commit is contained in:
Konstantin Käfer
2019-04-11 15:57:35 +02:00
committed by Julian Rex
parent bd5527fea7
commit e95bf4dd9b
2 changed files with 6 additions and 1 deletions

View File

@@ -831,7 +831,10 @@ public:
{
MGLAssertIsMainThread();
_rendererFrontend->reduceMemoryUse();
if ( ! self.dormant)
{
_rendererFrontend->reduceMemoryUse();
}
}
#pragma mark - Layout -

View File

@@ -812,6 +812,8 @@ void Context::performCleanup() {
abandonedRenderbuffers.data()));
abandonedRenderbuffers.clear();
}
MBGL_CHECK_ERROR(glFinish());
}
#if not defined(NDEBUG)