[macos] Call overlay handler when snapshotting

This commit is contained in:
Minh Nguyễn
2020-03-23 16:51:00 -07:00
committed by Minh Nguyễn
parent 6d0c81ddaf
commit 180ab72055

View File

@@ -447,6 +447,8 @@ MGLImage *MGLAttributedSnapshot(mbgl::MapSnapshotter::Attributions attributions,
[sourceImageRep drawInRect: targetFrame];
overlayHandler();
NSGraphicsContext *currentContext = [NSGraphicsContext currentContext];
if (!currentContext) {
// If the current context has been corrupted by the user,