//
// cocos2d::CCGLProgram::link from 0x7ee844 to 0x7ee868 (36 bytes)
//
// 4 xrefs:
// > CCSpriteWithHue::initShader @ 0x3f2fd4
// > ShaderLayer::setupShader @ 0x684f28
// > cocos2d::extension::CCControlSwitchSprite::initWithMaskSprite @ 0x7aa4a8
// > cocos2d::CCShaderCache::loadDefaultShader @ 0x7ef738
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:02 +0000
//
int __fastcall cocos2d::CCGLProgram::link(cocos2d::CCGLProgram *this)
{
glLinkProgram();
if ( *((_DWORD *)this + 14) )
glDeleteShader();
if ( *((_DWORD *)this + 15) )
glDeleteShader();
*((_DWORD *)this + 15) = 0;
*((_DWORD *)this + 14) = 0;
return 1;
}