//
// cocos2d::CCGrabber::beforeRender from 0x1005fa2a0 to 0x1005fa2f6 (86 bytes)
//
// 1 xrefs:
// > cocos2d::CCGridBase::beforeDraw @ 0x1004e3a3a
//
// 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::CCGrabber::beforeRender(cocos2d::CCGrabber *a1, cocos2d::CCTexture2D *a2)
{
glGetIntegerv(0x8CA6u, &a1->m_oldFBO);
glBindFramebuffer(0x8D40u, a1->m_FBO);
glGetFloatv(0xC22u, a1->m_oldClearColor);
glClearColor(0.0, 0.0, 0.0, 0.0);
glClear(0x4100u);
}