diff options
Diffstat (limited to 'src/mbgl/style/image.cpp')
-rw-r--r-- | src/mbgl/style/image.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mbgl/style/image.cpp b/src/mbgl/style/image.cpp index c5fecec2b2..606d9907a4 100644 --- a/src/mbgl/style/image.cpp +++ b/src/mbgl/style/image.cpp @@ -8,11 +8,10 @@ namespace style { Image::Image(PremultipliedImage &&image, const float pixelRatio, bool sdf) - : impl(std::make_shared<Impl>(std::move(image), pixelRatio, sdf)) { + : impl(makeMutable<Impl>(std::move(image), pixelRatio, sdf)) { } -PremultipliedImage& Image::getImage() const { - assert(impl); +const PremultipliedImage& Image::getImage() const { return impl->image; } |