From f9f92093092e29139dd44cfaf272abc3c4ff19f6 Mon Sep 17 00:00:00 2001 From: Julian Rex Date: Thu, 21 Mar 2019 00:05:55 -0400 Subject: Remove map view from storyboard - to avoid duplicate mapviews being instantiated. --- platform/ios/app/Main.storyboard | 51 ---------------------------------------- platform/ios/src/MGLMapView.mm | 5 ++-- 2 files changed, 3 insertions(+), 53 deletions(-) diff --git a/platform/ios/app/Main.storyboard b/platform/ios/app/Main.storyboard index 1dae42f291..9bd7495edc 100644 --- a/platform/ios/app/Main.storyboard +++ b/platform/ios/app/Main.storyboard @@ -59,8 +59,6 @@ - - @@ -71,55 +69,6 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index fffbe9bfa6..4a16d2f6fb 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -1390,7 +1390,7 @@ public: - (void)sleepGL:(__unused NSNotification *)notification { - NSLog(@"sleepGL START"); + NSLog(@"sleepGL START (self=%p)", self); // If this view targets an external display, such as AirPlay or CarPlay, we // can safely continue to render OpenGL content without tripping // gpus_ReturnNotPermittedKillClient in libGPUSupportMercury, because the @@ -1398,6 +1398,7 @@ public: // background. if (self.window.screen != [UIScreen mainScreen]) { + NSLog(@"sleepGL early return"); return; } @@ -1447,7 +1448,7 @@ public: [self.glView deleteDrawable]; } - NSLog(@"sleepGL END"); + NSLog(@"sleepGL END (self=%p)", self); } - (void)wakeGL:(__unused NSNotification *)notification -- cgit v1.2.1