fixed #619 CCFadeTo may crashed on android

This commit is contained in:
RongHong 2011-07-27 16:21:00 +08:00
parent fb1132bbf8
commit 8afa3a9be1
2 changed files with 5 additions and 1 deletions

View File

@ -101,7 +101,7 @@ int base64Decode(unsigned char *in, unsigned int inLength, unsigned char **out)
if (ret > 0 )
{
std::printf("Base64Utils: error decoding");
printf("Base64Utils: error decoding");
delete [] *out;
*out = NULL;
outLength = 0;

View File

@ -389,6 +389,10 @@ void RenderTextureZbuffer::ccTouchesEnded(CCSet* touches, CCEvent* event)
void RenderTextureZbuffer::renderScreenShot()
{
CCRenderTexture *texture = CCRenderTexture::renderTextureWithWidthAndHeight(512, 512);
if (NULL == texture)
{
return;
}
texture->setAnchorPoint(ccp(0, 0));
texture->begin();