Projects > cpp > Issues > Bug #3560

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Cocos2d-x 3.0 PNG Render Problem

Bug #3560 [Closed]
ray58750034 2014-01-02 04:26 . Updated over 10 years ago

I was trying to convert my game project from cocos2d-x 2.2.1 to cocos2d-x 3.0alpha1 on my mac. The application run on mac environment seems to have PNG render issue.

Please refer to attached screenshots:
cocos2d-x 2.2.1, works fine
cocos2d-x 3.0alpha1, display wrong (seems like PNG crashed)

cocos2dx_2.2.1.png - works fine (59.5 kB) ray58750034, 2014-01-02 04:26

cocos2dx_3.0alpha1.png - display wrong (52.5 kB) ray58750034, 2014-01-02 04:26

elensar 2014-02-07 16:14

Did you check pixelFormat in AppCOntroller.mm? Your second image have banding, this is ok if you have kEAGLColorFormatRGB565 pixel format. This is not a bug.
Set it to pixelFormat: kEAGLColorFormatRGBA8 and your images will be fine.

ray58750034 2014-07-22 04:09

I can not reproduce this issue in latest version. So I guess it was fixed.

walzer@cocos2d-x.org 2014-10-08 02:45

Redmine issue system is closed, we are using github issue system instead.

This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8295

Atom PDF

Status:Closed
Start date:2014-01-02
Priority:Low
Due date:
Assignee:-
% Done:

0%

Category:mac
Target version:-