diff --git a/platform/ios/src/MLNMapView+Metal.mm b/platform/ios/src/MLNMapView+Metal.mm index eb9ff5b38..45498f92d 100644 --- a/platform/ios/src/MLNMapView+Metal.mm +++ b/platform/ios/src/MLNMapView+Metal.mm @@ -79,7 +79,9 @@ public: void swap() override { id currentDrawable = [mtlView currentDrawable]; - [commandBuffer presentDrawable:currentDrawable]; + if (currentDrawable) { + [commandBuffer presentDrawable:currentDrawable]; + } [commandBuffer commit]; // Un-comment for synchronous, which can help troubleshoot rendering problems,