//
// cocos2d::CCEGLView::swapBuffers from 0x18007bba0 to 0x18007bbb1 (17 bytes)
//
// 2 xrefs:
// > ??> @ 0x180106fd8
// > ??> @ 0x18014cf68
//
// 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:22:00 +0000
//
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_1800DB260(65546, "Cannot swap buffers of a window that has no OpenGL or OpenGL ES context");
}
else
{
sub_1800DB260(65537, 0);
}
}
}