//
// cocos2d::CCRenderTexture::end from 0x5d87a0 to 0x5d87d8 (56 bytes)
//
// 11 xrefs:
// > MapSelectLayer::checkTouchMonster @ 0x50e902
// > ShaderLayer::visit @ 0x54f1ac
// > PlayerObject::playDeathEffect @ 0x56b29a
// > cocos2d::extension::CCControlSwitchSprite::needsLayout @ 0x5a4588
// > cocos2d::CCTransitionCrossFade::onEnter @ 0x5d2caa
// > cocos2d::CCTransitionCrossFade::onEnter @ 0x5d2d50
// > cocos2d::CCTransitionProgress::onEnter @ 0x5d3ac4
// > cocos2d::CCRenderTexture::draw @ 0x5d88b6
// > cocos2d::CCRenderTexture::clear @ 0x5d8918
// > cocos2d::CCRenderTexture::clearDepth @ 0x5d8950
// > cocos2d::CCRenderTexture::newCCImage @ 0x5d8a26
//
// 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 cocos2d::CCRenderTexture::end(cocos2d::CCRenderTexture *a1)
{
cocos2d::CCDirector *v1; // r4
v1 = cocos2d::CCDirector::sharedDirector();
glBindFramebuffer();
cocos2d::CCDirector::setViewport(v1);
kmGLMatrixMode(5889);
kmGLPopMatrix();
kmGLMatrixMode(5888);
kmGLPopMatrix();
}