//
// cocos2d::CCRenderTexture::clearDepth from 0x180061ac0 to 0x180061b67 (167 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bd690
//
// 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::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 + 84));
cocos2d::CCDirector::setViewport(v3);
kmGLMatrixMode(5889);
kmGLPopMatrix();
kmGLMatrixMode(5888);
kmGLPopMatrix();
}