//
// cocos2d::CCRenderTexture::listenToForeground from 0xd6a434 to 0xd6a4bc (136 bytes)
//
// 3 xrefs:
// > ??> @ 0x55738
// > cocos2d::CCRenderTexture::CCRenderTexture @ 0xd6a65c
// > ??> @ 0x1541e50
//
// 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
//
__int64 __fastcall cocos2d::CCRenderTexture::listenToForeground(cocos2d::CCTexture2D **this, cocos2d::CCObject *a2)
{
cocos2d::CCTexture2D *v3; // x0
glGetIntegerv();
glGenFramebuffers();
glBindFramebuffer();
cocos2d::CCTexture2D::setAliasTexParameters(*(this + 43));
v3 = *(this + 44);
if ( v3 )
cocos2d::CCTexture2D::setAliasTexParameters(v3);
(*(void (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 43) + 104LL))(*(this + 43));
glFramebufferTexture2D();
return glBindFramebuffer();
}