//
// cocos2d::CCGLProgram::link from 0xb10e2c to 0xb10e78 (76 bytes)
//
// 7 xrefs:
// > CCSpriteWithHue::initShader @ 0x5bc890
// > ShaderLayer::setupShader @ 0x9f761c
// > cocos2d::extension::CCControlSwitchSprite::initWithMaskSprite @ 0xa9f918
// > cocos2d::CCShaderCache::loadDefaultShader @ 0xb124b4
// > cocos2d::CCShaderCache::loadDefaultShader @ 0xb12528
// > cocos2d::CCShaderCache::loadDefaultShader @ 0xb1263c
// > ??> @ 0x47088
//
// 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
//
bool cocos2d::CCGLProgram::link(cocos2d::CCGLProgram *a1)
{
glLinkProgram();
if ( a1->m_uVertShader )
glDeleteShader();
if ( a1->m_uFragShader )
glDeleteShader();
a1->m_uFragShader = 0;
a1->m_uVertShader = 0;
return 1;
}