//
// sub_1800E1340 from 0x1800e1340 to 0x1800e138a (74 bytes)
//
// 2 xrefs:
// > sub_1800E0280 @ 0x1800e06e9
// > ??> @ 0x1801c5190
//
// 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:36 +0000
//
__int64 (__fastcall *__fastcall sub_1800E1340(_QWORD *a1))(_QWORD, _QWORD)
{
if ( a1 == sub_1800DE110((__int64)&unk_1801B520C) )
return (__int64 (__fastcall *)(_QWORD, _QWORD))eglSwapBuffers(qword_1801B61E8, a1[84]);
else
return sub_1800DB260(0x10008u, "EGL: The context must be current on the calling thread when swapping buffers");
}