mirror of https://github.com/axmolengine/axmol.git
parent
069d3507e8
commit
5af16c3282
|
@ -160,7 +160,6 @@ bool CCSprite::init(void)
|
||||||
m_sBlendFunc.dst = CC_BLEND_DST;
|
m_sBlendFunc.dst = CC_BLEND_DST;
|
||||||
|
|
||||||
// update texture (calls updateBlendFunc)
|
// update texture (calls updateBlendFunc)
|
||||||
m_pobTexture = NULL;
|
|
||||||
setTexture(NULL);
|
setTexture(NULL);
|
||||||
|
|
||||||
// clean the Quad
|
// clean the Quad
|
||||||
|
@ -302,6 +301,7 @@ bool CCSprite::initWithSpriteSheet(CCSpriteSheet *pSpriteSheet, CGRect rect)
|
||||||
}
|
}
|
||||||
|
|
||||||
CCSprite::CCSprite()
|
CCSprite::CCSprite()
|
||||||
|
: m_pobTexture(NULL)
|
||||||
{
|
{
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue