Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 committed Nov 24, 2020
1 parent 9b51c1c commit 5821233
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions cocos/platform/ios/CCImage-ios.mm
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,7 @@ of this software and associated documentation files (the "Software"), to deal
CGBitmapInfo bitmapInfo = kCGBitmapByteOrderDefault;
if (saveToPNG && hasAlpha() && (! isToRGB))
{
if (_hasPremultipliedAlpha)
{
bitmapInfo |= kCGImageAlphaPremultipliedLast;
}
else
{
bitmapInfo |= kCGImageAlphaLast;
}
bitmapInfo |= kCGImageAlphaLast;
}
CGDataProviderRef provider = CGDataProviderCreateWithData(nullptr, pixels, myDataLength, nullptr);
CGColorSpaceRef colorSpaceRef = CGColorSpaceCreateDeviceRGB();
Expand Down

0 comments on commit 5821233

Please sign in to comment.