//
// cocos2d::ccGLBlendFunc from 0x180088070 to 0x1800880d9 (105 bytes)
//
// 13 xrefs:
// > cocos2d::CCAtlasNode::draw @ 0x180001ae3
// > cocos2d::CCDrawNode::draw @ 0x1800120d4
// > cocos2d::CCLayerColor::draw @ 0x18004fd27
// > cocos2d::CCMotionStreak::draw @ 0x18005cd1b
// > cocos2d::CCProgressTimer::draw @ 0x18005dbd2
// > cocos2d::CCParticleBatchNode::draw @ 0x180061565
// > cocos2d::CCParticleSystemQuad::draw @ 0x18006a663
// > cocos2d::CCSprite::draw @ 0x18008b9ce
// > cocos2d::CCSpriteBatchNode::draw @ 0x18008e45b
// > cocos2d::CCDirector::setAlphaBlending @ 0x1800bf3df
// > cocos2d::CCDirector::setGLDefaultValues @ 0x1800bf643
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b588c
//
// 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 __fastcall cocos2d::ccGLBlendFunc(GLenum sfactor, GLenum dfactor)
{
if ( sfactor != dword_1801A2FE8 || dfactor != dword_1801A2FEC )
{
dword_1801A2FE8 = sfactor;
dword_1801A2FEC = dfactor;
if ( sfactor != 1 || dfactor )
{
glEnable(0xBE2u);
glBlendFunc(sfactor, dfactor);
}
else
{
glDisable(0xBE2u);
}
}
}