//
// cocos2d::CCRenderTexture::dCCRenderTexture from 0x1006c7dc0 to 0x1006c7e4b (139 bytes)
//
// 2 xrefs:
// > sub_1006C7E60 @ 0x1006c7e65
// > sub_1006C7E70 @ 0x1006c7e79
//
// 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 12:35:34 +0000
//
__int64 __fastcall cocos2d::CCRenderTexture::dCCRenderTexture(__int64 a1)
{
_DWORD *v2; // rdi
_DWORD *v3; // rdi
__int64 v4; // rdi
*(_QWORD *)a1 = off_100B8EFC0;
v2 = *(_DWORD **)(a1 + 320);
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *(_DWORD **)(a1 + 352);
if ( v3 )
cocos2d::CCObject::release(v3);
glDeleteFramebuffers(1, (const GLuint *)(a1 + 328));
if ( *(_DWORD *)(a1 + 332) )
glDeleteRenderbuffers(1, (const GLuint *)(a1 + 332));
v4 = *(_QWORD *)(a1 + 360);
if ( v4 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4);
*(_QWORD *)(a1 + 360) = 0;
}
return cocos2d::CCNode::dCCNode(a1);
}