//
// cocos2d::ccGLBindTexture2D from 0x180087fe0 to 0x18008801d (61 bytes)
//
// 16 xrefs:
// > cocos2d::CCGridBase::afterDraw @ 0x18002266e
// > cocos2d::CCMotionStreak::draw @ 0x18005cd2f
// > cocos2d::CCProgressTimer::draw @ 0x18005dc00
// > cocos2d::CCParticleSystemQuad::draw @ 0x18006a652
// > cocos2d::CCSprite::draw @ 0x18008b9e2
// > cocos2d::CCTexture2D::drawAtPoint @ 0x1800a4fe4
// > cocos2d::CCTexture2D::drawInRect @ 0x1800a511b
// > cocos2d::CCTexture2D::generateMipmap @ 0x1800a51c1
// > cocos2d::CCTexture2D::initWithData @ 0x1800a56e1
// > cocos2d::CCTexture2D::setAliasTexParameters @ 0x1800a5e1c
// > cocos2d::CCTexture2D::setAntiAliasTexParameters @ 0x1800a5e6c
// > cocos2d::CCTexture2D::setTexParameters @ 0x1800a5f16
// > cocos2d::CCTextureAtlas::drawNumberOfQuads @ 0x1800a637b
// > sub_1800A9E90 @ 0x1800a9eff
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b5874
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::ccGLBindTexture2D(cocos2d *this)
{
GLuint v1; // ebx
v1 = (unsigned int)this;
if ( (_DWORD)qword_1801A2FF0 != (_DWORD)this )
{
LODWORD(qword_1801A2FF0) = (_DWORD)this;
_glewActiveTexture(33984);
glBindTexture(0xDE1u, v1);
}
}