//
// cocos2d::CCRenderTexture::clearStencil from 0x18005f990 to 0x18005f9cb (59 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b33d8
//
// 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::clearStencil(cocos2d::CCRenderTexture *this, GLint a2)
{
GLint params; // [rsp+40h] [rbp+18h] BYREF
glGetIntegerv(0xB91u, ¶ms);
glClearStencil(a2);
glClear(0x400u);
glClearStencil(params);
}