//
// cocos2d::CCRenderTexture::~CCRenderTexture from 0x180061460 to 0x1800614fb (155 bytes)
//
// 4 xrefs:
// > sub_180061500 @ 0x18006155e
// > sub_180061500 @ 0x18006151c
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bd630
//
// 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:21:51 +0000
//
void __fastcall cocos2d::CCRenderTexture::~CCRenderTexture(cocos2d::CCRenderTexture *this)
{
cocos2d::CCObject *v2; // rcx
cocos2d::CCObject *v3; // rcx
__int64 v4; // rcx
*(_QWORD *)this = &cocos2d::CCRenderTexture::`vftable';
v2 = *((cocos2d::CCObject **)this + 40);
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *((cocos2d::CCObject **)this + 44);
if ( v3 )
cocos2d::CCObject::release(v3);
_glewDeleteFramebuffers(1, (char *)this + 328);
if ( *((_DWORD *)this + 83) )
_glewDeleteRenderbuffers(1);
v4 = *((_QWORD *)this + 45);
if ( v4 )
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1);
*((_QWORD *)this + 45) = 0;
}
cocos2d::CCNode::~CCNode(this);
}