summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin R. Miller <incanus@codesorcery.net>2017-05-31 12:04:36 -0700
committerJustin R. Miller <incanus@codesorcery.net>2017-05-31 12:04:36 -0700
commit17f6b2a132d19d0b2b4fab88cf7120148e0b438d (patch)
tree2d57cd306615e2e0f81096366357afcabaa3e73a
parent4443eba18fd9a64f366356fa7bdc74e95f5e55ab (diff)
downloadqtlocation-mapboxgl-upstream/jrm-ios-image-source-hack.tar.gz
-rw-r--r--platform/darwin/src/MGLStyle.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLStyle.mm b/platform/darwin/src/MGLStyle.mm
index a2a7100025..09a45c9c42 100644
--- a/platform/darwin/src/MGLStyle.mm
+++ b/platform/darwin/src/MGLStyle.mm
@@ -179,7 +179,7 @@ static NSURL *MGLStyleURL_emerald;
} else if (auto rasterSource = rawSource->as<mbgl::style::RasterSource>()) {
return [[MGLRasterSource alloc] initWithRawSource:rasterSource];
} else if (auto imageSource = rawSource->as<mbgl::style::ImageSource>()) {
- return [[MGLImageSource alloc] initWithRawSource:rasterSource];
+ return [[MGLImageSource alloc] initWithRawSource:imageSource];
} else {
return [[MGLSource alloc] initWithRawSource:rawSource];
}