//
// cocos2d::CCRenderTexture::clearDepth from 0x18005f8e0 to 0x18005f984 (164 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b33cc
//
// 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::clearDepth(cocos2d::CCRenderTexture *this, float a2)
{
cocos2d::CCDirector *v3; // rbx
GLfloat params; // [rsp+48h] [rbp+10h] BYREF
cocos2d::CCRenderTexture::begin(this);
glGetFloatv(0xB73u, ¶ms);
glClearDepth(a2);
glClear(0x100u);
glClearDepth(params);
v3 = cocos2d::CCDirector::sharedDirector();
_glewBindFramebuffer(36160, (unsigned int)this->m_nOldFBO);
cocos2d::CCDirector::setViewport(v3);
kmGLMatrixMode(5889);
kmGLPopMatrix();
kmGLMatrixMode(5888);
kmGLPopMatrix();
}