private void disposeCache() { if (mCache != null) { mCache.getTexture().dispose(); mCache.dispose(); mCache = null; } }
public override void dispose() { removeEventListener(AsEvent.FLATTEN, onFlatten); if (mImage != null) { mImage.getTexture().dispose(); } if (mQuadBatch != null) { mQuadBatch.dispose(); } base.dispose(); }