Add a CCSprite at runtime problem

Hi everyone,
I have a button in my app, and when I click the button, it will add a sprite to my scene(scene->addChild(sprite)), but the image of the sprite is missing, but I can see the boundary, what happened about this?


sshot-1.png (15.7 KB)


sshot-2.png (99.4 KB)

But after I minimize the window, and set window display again, it will be ok.

thank you.