//
// cocos2d::CCTexture2D::generateMipmap from 0xda296c to 0xda29c0 (84 bytes)
//
// 1 xrefs:
// > ??> @ 0xdeb38
//
// This function is hookable on this platform (idp: arm, 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 13:08:30 +0000
//
__int64 __fastcall cocos2d::CCTexture2D::generateMipmap(cocos2d::CCTexture2D *this)
{
cocos2d *v2; // x20
v2 = (cocos2d *)*((unsigned int *)this + 16);
if ( v2 == (cocos2d *)cocos2d::ccNextPOT(v2) )
cocos2d::ccNextPOT((cocos2d *)*((unsigned int *)this + 17));
cocos2d::ccGLBindTexture2D((cocos2d *)*((unsigned int *)this + 18));
glGenerateMipmap();
*((_BYTE *)this + 93) = 1;
return 1;
}