//
// cocos2d::CCRenderTexture::end from 0x18005fda0 to 0x18005fdfa (90 bytes)
//
// 6 xrefs:
// > cocos2d::CCTransitionCrossFade::onEnter @ 0x180054c8b
// > cocos2d::CCTransitionCrossFade::onEnter @ 0x180054d42
// > cocos2d::CCTransitionProgress::onEnter @ 0x180057688
// > cocos2d::CCRenderTexture::endToLua @ 0x1800d1720
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b3444
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCRenderTexture::end(cocos2d::CCRenderTexture *this)
{
cocos2d::CCDirector *v2; // rdi
v2 = cocos2d::CCDirector::sharedDirector();
_glewBindFramebuffer(36160, (unsigned int)this->m_nOldFBO);
cocos2d::CCDirector::setViewport(v2);
kmGLMatrixMode(5889);
kmGLPopMatrix();
kmGLMatrixMode(5888);
kmGLPopMatrix();
}