//
// cocos2d::CCRenderTexture::clearDepth from 0x1006c8c60 to 0x1006c8cf3 (147 bytes)
//
// 0 xrefs:
//
// 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 12:35:35 +0000
//
__int64 __fastcall cocos2d::CCRenderTexture::clearDepth(__int64 a1, float a2)
{
__int64 v2; // r14
GLfloat params; // [rsp+8h] [rbp-18h] BYREF
float v5; // [rsp+Ch] [rbp-14h]
v5 = a2;
cocos2d::CCRenderTexture::begin(a1);
glGetFloatv(0xB73u, ¶ms);
glClearDepth(v5);
glClear(0x100u);
glClearDepth(params);
v2 = cocos2d::CCDirector::sharedDirector();
glBindFramebuffer(0x8D40u, *(_DWORD *)(a1 + 336));
cocos2d::CCDirector::setViewport(v2);
kmGLMatrixMode(5889);
kmGLPopMatrix(5889);
kmGLMatrixMode(5888);
return kmGLPopMatrix(5888);
}