diff --git a/platform/ios/platform/ios/src/MGLMapView.mm b/platform/ios/platform/ios/src/MGLMapView.mm index b00c41a9963..7df51b5c5ff 100644 --- a/platform/ios/platform/ios/src/MGLMapView.mm +++ b/platform/ios/platform/ios/src/MGLMapView.mm @@ -1651,6 +1651,8 @@ - (void)willResignActive:(NSNotification *)notification // We want to pause the rendering [self stopDisplayLink]; +// self.lastSnapshotImage = _mbglView->snapshot(); + // For OpenGL this calls glFinish as recommended in // https://developer.apple.com/library/archive/documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/ImplementingaMultitasking-awareOpenGLESApplication/ImplementingaMultitasking-awareOpenGLESApplication.html#//apple_ref/doc/uid/TP40008793-CH5-SW1 // reduceMemoryUse(), calls performCleanup(), which calls glFinish @@ -7185,8 +7187,8 @@ - (void)attemptBackgroundSnapshot { NSTimeInterval now = CACurrentMediaTime(); if (lastSnapshotTime == 0.0 || (now - lastSnapshotTime > MGLBackgroundSnapshotImageInterval)) { - MGLLogDebug(@"Taking snapshot"); - self.lastSnapshotImage = _mbglView->snapshot(); +// MGLLogDebug(@"Taking snapshot"); +// self.lastSnapshotImage = _mbglView->snapshot(); lastSnapshotTime = now; } }