[core][ios][osx][android] make SpriteImage accept PremultipliedImage
the SpriteImage constructor signature changes from
SpriteImage(
uint16_t width, uint16_t height, float pixelRatio,
std::string&& data, bool sdf = false);
to
SpriteImage(PremultipliedImage&&, float pixelRatio, bool sdf = false)
This commit is contained in:
@@ -248,8 +248,8 @@ void SymbolBucket::addFeatures(uintptr_t tileUID,
|
||||
auto image = spriteAtlas.getImage(feature.sprite, false);
|
||||
if (image) {
|
||||
shapedIcon = shapeIcon(*image, layout);
|
||||
assert((*image).texture);
|
||||
if ((*image).texture->sdf) {
|
||||
assert((*image).spriteImage);
|
||||
if ((*image).spriteImage->sdf) {
|
||||
sdfIcons = true;
|
||||
}
|
||||
if ((*image).relativePixelRatio != 1.0f) {
|
||||
|
||||
Reference in New Issue
Block a user