//
// cocos2d::CCRenderTexture::end from 0x180061f80 to 0x180061fdd (93 bytes)
//
// 6 xrefs:
// > cocos2d::CCTransitionCrossFade::onEnter @ 0x180056a4e
// > cocos2d::CCTransitionCrossFade::onEnter @ 0x180056b08
// > cocos2d::CCTransitionProgress::onEnter @ 0x18005958e
// > cocos2d::CCRenderTexture::endToLua @ 0x1800d5dc0
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bd708
//
// 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::end(cocos2d::CCRenderTexture *this)
{
cocos2d::CCDirector *v2; // rdi
v2 = cocos2d::CCDirector::sharedDirector();
_glewBindFramebuffer(36160, *((unsigned int *)this + 84));
cocos2d::CCDirector::setViewport(v2);
kmGLMatrixMode(5889);
kmGLPopMatrix();
kmGLMatrixMode(5888);
kmGLPopMatrix();
}