//
// cocos2d::ccGLBlendFunc from 0x18008b240 to 0x18008b2a9 (105 bytes)
//
// 13 xrefs:
// > cocos2d::CCAtlasNode::draw @ 0x180001a97
// > cocos2d::CCDrawNode::draw @ 0x1800122b4
// > cocos2d::CCLayerColor::draw @ 0x180051b53
// > cocos2d::CCMotionStreak::draw @ 0x18005ed6b
// > cocos2d::CCProgressTimer::draw @ 0x18005fd9d
// > cocos2d::CCParticleBatchNode::draw @ 0x180063975
// > cocos2d::CCParticleSystemQuad::draw @ 0x18006c800
// > cocos2d::CCSprite::draw @ 0x18008ebae
// > cocos2d::CCSpriteBatchNode::draw @ 0x18009168b
// > cocos2d::CCDirector::setAlphaBlending @ 0x1800c2c2f
// > cocos2d::CCDirector::setGLDefaultValues @ 0x1800c2e73
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bfb5c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:06 +0000
//
void __fastcall cocos2d::ccGLBlendFunc(GLenum sfactor, GLenum dfactor)
{
if ( sfactor != dword_1801ACFB8 || dfactor != dword_1801ACFBC )
{
dword_1801ACFB8 = sfactor;
dword_1801ACFBC = dfactor;
if ( sfactor != 1 || dfactor )
{
glEnable(0xBE2u);
glBlendFunc(sfactor, dfactor);
}
else
{
glDisable(0xBE2u);
}
}
}