//
// cocos2d::CCEGLView::swapBuffers from 0x180078dc0 to 0x180078dd1 (17 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801008c0
// > ??> @ 0x1801438a8
//
// 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::CCEGLView::swapBuffers(cocos2d::CCEGLView *this)
{
__int64 v1; // rcx
v1 = *((_QWORD *)this + 25);
if ( v1 )
{
if ( *(_DWORD *)&ModuleName )
{
if ( *(_DWORD *)(v1 + 512) )
(*(void (**)(void))(v1 + 592))();
else
sub_1800D3530(65546, "Cannot swap buffers of a window that has no OpenGL or OpenGL ES context");
}
else
{
sub_1800D3530(65537, 0);
}
}
}