//
// cocos2d::CCParticleSystem::setBlendAdditive from 0x5dacb8 to 0x5dacec (52 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void cocos2d::CCParticleSystem::setBlendAdditive(cocos2d::CCParticleSystem *a1, bool a2)
{
GLenum v3; // r3
cocos2d::CCTexture2D *m_pTexture; // r0
GLenum v5; // r3
if ( a2 )
{
a1->m_tBlendFunc.src = 770;
v3 = 1;
}
else
{
m_pTexture = a1->m_pTexture;
if ( !m_pTexture || cocos2d::CCTexture2D::hasPremultipliedAlpha(m_pTexture) )
v5 = 1;
else
v5 = 770;
a1->m_tBlendFunc.src = v5;
v3 = 771;
}
a1->m_tBlendFunc.dst = v3;
}