; ; 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 ; mov [rsp+arg_0], rbx ; +0x0, 0x180061ac0 push rdi ; +0x5, 0x180061ac5 sub rsp, 30h ; +0x6, 0x180061ac6 movaps [rsp+38h+var_18], xmm6 ; +0xa, 0x180061aca mov rdi, rcx ; +0xf, 0x180061acf movaps xmm6, xmm1 ; +0x12, 0x180061ad2 call ?begin@CCRenderTexture@cocos2d@@QEAAXXZ; cocos2d::CCRenderTexture::begin(void) ; +0x15, 0x180061ad5 lea rdx, [rsp+38h+params]; params ; +0x1a, 0x180061ada mov ecx, 0B73h; pname ; +0x1f, 0x180061adf call cs:glGetFloatv ; +0x24, 0x180061ae4 xorps xmm0, xmm0 ; +0x2a, 0x180061aea cvtss2sd xmm0, xmm6; depth ; +0x2d, 0x180061aed call cs:glClearDepth ; +0x31, 0x180061af1 mov ecx, 100h; mask ; +0x37, 0x180061af7 call cs:glClear ; +0x3c, 0x180061afc movss xmm0, [rsp+38h+params] ; +0x42, 0x180061b02 cvtps2pd xmm0, xmm0; depth ; +0x48, 0x180061b08 call cs:glClearDepth ; +0x4b, 0x180061b0b call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x51, 0x180061b11 mov rcx, cs:__glewBindFramebuffer ; +0x56, 0x180061b16 mov rbx, rax ; +0x5d, 0x180061b1d mov edx, [rdi+150h] ; +0x60, 0x180061b20 mov r8, [rcx] ; +0x66, 0x180061b26 mov ecx, 8D40h ; +0x69, 0x180061b29 call r8 ; +0x6e, 0x180061b2e mov rcx, rbx; this ; +0x71, 0x180061b31 call ?setViewport@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::setViewport(void) ; +0x74, 0x180061b34 mov ecx, 1701h ; +0x79, 0x180061b39 call kmGLMatrixMode ; +0x7e, 0x180061b3e call kmGLPopMatrix ; +0x83, 0x180061b43 mov ecx, 1700h ; +0x88, 0x180061b48 call kmGLMatrixMode ; +0x8d, 0x180061b4d call kmGLPopMatrix ; +0x92, 0x180061b52 mov rbx, [rsp+38h+arg_0] ; +0x97, 0x180061b57 movaps xmm6, [rsp+38h+var_18] ; +0x9c, 0x180061b5c add rsp, 30h ; +0xa1, 0x180061b61 pop rdi ; +0xa5, 0x180061b65 retn ; +0xa6, 0x180061b66