//
// ShaderLayer::toggleAntiAlias from 0x10026e13c to 0x10026e1a0 (100 bytes)
//
// 2 xrefs:
// > ShaderLayer::setupShader @ 0x10026dfb0
// > ShaderLayer::prePixelateShader @ 0x100271800
//
// 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 ShaderLayer::toggleAntiAlias(ShaderLayer *a1, bool a2)
{
_BOOL4 v2; // w19
__int64 v3; // x0
cocos2d::CCTexture2D *v4; // x0
if ( a1->m_antiAlias != a2 )
{
v2 = a2;
a1->m_antiAlias = a2;
v3 = ((__int64 (__fastcall *)(cocos2d::CCRenderTexture *))a1->m_renderTexture->getSprite)(a1->m_renderTexture);
v4 = (cocos2d::CCTexture2D *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1056LL))(v3);
if ( v2 )
cocos2d::CCTexture2D::setAntiAliasTexParameters(v4);
else
cocos2d::CCTexture2D::setAliasTexParameters(v4);
}
}