mirror of https://github.com/axmolengine/axmol.git
Merge pull request #7700 from GavinThornton/patch-1
Update CCSpriteBatchNode.cpp
This commit is contained in:
commit
800ab18457
|
@ -85,7 +85,7 @@ bool SpriteBatchNode::initWithTexture(Texture2D *tex, ssize_t capacity)
|
|||
CCASSERT(capacity>=0, "Capacity must be >= 0");
|
||||
|
||||
_blendFunc = BlendFunc::ALPHA_PREMULTIPLIED;
|
||||
if(tex->hasPremultipliedAlpha())
|
||||
if(!tex->hasPremultipliedAlpha())
|
||||
{
|
||||
_blendFunc = BlendFunc::ALPHA_NON_PREMULTIPLIED;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue