mirror of https://github.com/axmolengine/axmol.git
fixed #619 CCFadeTo may crashed on android
This commit is contained in:
parent
fb1132bbf8
commit
8afa3a9be1
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue