//
// cocos2d::CCRenderTexture::~CCRenderTexture from 0xd6a364 to 0xd6a410 (172 bytes)
//
// 4 xrefs:
// > cocos2d::CCRenderTexture::~CCRenderTexture @ 0xd6a420
// > ??> @ 0xc8908
// > ??> @ 0x104680
// > ??> @ 0x1527678
//
// This function is hookable on this platform (idp: arm, 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 13:07:56 +0000
//
// Alternative name is '_ZN7cocos2d15CCRenderTextureD2Ev'
void __fastcall cocos2d::CCRenderTexture::~CCRenderTexture(cocos2d::CCRenderTexture *this)
{
_DWORD *v2; // x0
_DWORD *v3; // x0
cocos2d::CCNotificationCenter *v4; // x0
cocos2d::CCNotificationCenter *v5; // x0
cocos2d::CCNotificationCenter *v6; // x0
cocos2d::CCNotificationCenter *v7; // x0
v2 = *((_DWORD **)this + 40);
*(_QWORD *)this = &off_1527670;
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *((_DWORD **)this + 44);
if ( v3 )
cocos2d::CCObject::release(v3);
glDeleteFramebuffers();
if ( *((_DWORD *)this + 83) )
glDeleteRenderbuffers();
v4 = *((cocos2d::CCNotificationCenter **)this + 45);
if ( v4 )
{
v4 = (cocos2d::CCNotificationCenter *)(*(__int64 (__fastcall **)(cocos2d::CCNotificationCenter *))(*(_QWORD *)v4 + 16LL))(v4);
*((_QWORD *)this + 45) = 0;
}
v5 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(v4);
v6 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::removeObserver(
v5,
this,
"event_come_to_background");
v7 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(v6);
cocos2d::CCNotificationCenter::removeObserver(v7, this, "event_come_to_foreground");
cocos2d::CCNode::~CCNode(this);
}