//
// cocos2d::CCRenderTexture::end from 0xaf9f80 to 0xaf9fcc (76 bytes)
//
// 12 xrefs:
// > MapSelectLayer::checkTouchMonster @ 0x97efc0
// > ShaderLayer::visit @ 0x9f7b58
// > PlayerObject::playDeathEffect @ 0xa27de0
// > cocos2d::extension::CCControlSwitchSprite::needsLayout @ 0xa9f5e8
// > cocos2d::CCTransitionCrossFade::onEnter @ 0xaf0254
// > cocos2d::CCTransitionCrossFade::onEnter @ 0xaf0314
// > cocos2d::CCTransitionProgress::onEnter @ 0xaf16dc
// > cocos2d::CCRenderTexture::draw @ 0xafa094
// > cocos2d::CCRenderTexture::clear @ 0xafa190
// > cocos2d::CCRenderTexture::clearDepth @ 0xafa1e4
// > cocos2d::CCRenderTexture::newCCImage @ 0xafa320
// > ??> @ 0x36c90
//
// 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; // x19
v1 = cocos2d::CCDirector::sharedDirector();
glBindFramebuffer();
cocos2d::CCDirector::setViewport(v1);
kmGLMatrixMode((__int64 *)((char *)&elf_hash_bucket[1346] + 1));
kmGLPopMatrix();
kmGLMatrixMode((__int64 *)&elf_hash_bucket[1346]);
kmGLPopMatrix();
}