[ios] run glFlush when reducing memory and don't reduce memory while in background (#14383)
This commit is contained in:
committed by
Julian Rex
parent
bd5527fea7
commit
e95bf4dd9b
@@ -831,7 +831,10 @@ public:
|
||||
{
|
||||
MGLAssertIsMainThread();
|
||||
|
||||
_rendererFrontend->reduceMemoryUse();
|
||||
if ( ! self.dormant)
|
||||
{
|
||||
_rendererFrontend->reduceMemoryUse();
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - Layout -
|
||||
|
||||
@@ -812,6 +812,8 @@ void Context::performCleanup() {
|
||||
abandonedRenderbuffers.data()));
|
||||
abandonedRenderbuffers.clear();
|
||||
}
|
||||
|
||||
MBGL_CHECK_ERROR(glFinish());
|
||||
}
|
||||
|
||||
#if not defined(NDEBUG)
|
||||
|
||||
Reference in New Issue
Block a user