cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.25k stars 7.06k forks source link

v4 fix to stop iOS from converting an image into non-premultiplied alpha on save #20614

Open rh101 opened 3 years ago

rh101 commented 3 years ago

RenderTexture has explicit methods to save an image with pre-multiplied alpha (PMA) or without PMA. Saving with PMA is forcefully converted to non-PMA by the current implementation on iOS, which is not the correct functionality.

Refer to #20613