//
// cocos2d::CCTexture2D::generateMipmap from 0x1800a8c80 to 0x1800a8ccb (75 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c1e9c
//
// 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:16 +0000
//
void __fastcall cocos2d::CCTexture2D::generateMipmap(cocos2d::CCTexture2D *this)
{
int v1; // ebx
v1 = *((_DWORD *)this + 16);
if ( v1 == (unsigned int)sub_1800992B0(v1) )
sub_1800992B0(*((_DWORD *)this + 17));
cocos2d::ccGLBindTexture2D((cocos2d *)*((unsigned int *)this + 18));
_glewGenerateMipmap(3553);
*((_BYTE *)this + 93) = 1;
}