large sprite causing weird display bug only on iphone 4S & ipad 2

Hello,

Our new game was tested and works well on iphone 3G & 3Gs (ios 4.2), 4G (ios 5.1 + retina), ipod touch 2nd gen (ios 5.0 +retina), ipad 1 (ios 5.1)
But there’s a bug that only happens on iphone 4S & ipad 2 (cf screenshot). (ios 5.0 & 5.1)

On many levels some large sprites only appear partially and also hide a part of the screen.
Moving the sprite of just 1 px sometimes seems to remove the bug (but that’s not an acceptable workaround for us :slight_smile: )

The same sprites (= based on same png files) may work well on other levels.
size of those files :
image1-hd.png : 164ko 530*673
image2-hd.png : 209ko 527x704
image3-hd.png : 86ko 631x831

Did anyone already see something like that?
We are using version : cocos2d-1.0.1-x-0.11.0


photo (47).PNG (293.3 KB)


photo (47).PNG (293.3 KB)


photo (46).PNG (698.0 KB)

I used to have this problem and I have solved it. i forgot what I did, I will check for you tonight when I go home.

I used to have this problem too… seems like a engine bug.
CCDirector::sharedDirector()->setDepthTest(false);
works for me~ good luck!

thanks for your reply. I can’t test this workaround right now because I don’t have a iphone4S.
I’ll let you know when I can make the test