Merge pull request #7700 from GavinThornton/patch-1

Update CCSpriteBatchNode.cpp
This commit is contained in:
minggo 2014-08-08 11:49:39 +08:00
commit 800ab18457
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}