//
// cocos2d::CCTexture2D::generateMipmap from 0x10046de00 to 0x10046de3e (62 bytes)
//
// 0 xrefs:
//
// 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 12:30:32 +0000
//
void __fastcall cocos2d::CCTexture2D::generateMipmap(__int64 a1)
{
__int64 v1; // r14
v1 = *(unsigned int *)(a1 + 64);
if ( sub_1005A4800(v1) == v1 )
sub_1005A4800(*(unsigned int *)(a1 + 68));
cocos2d::ccGLBindTexture2D(*(_DWORD *)(a1 + 72));
glGenerateMipmap(0xDE1u);
*(_BYTE *)(a1 + 93) = 1;
}