onRenderTargetDispose method
Implementation
void onRenderTargetDispose(Event event) {
final renderTarget = event.target;
renderTarget.removeEventListener('dispose', onRenderTargetDispose);
deallocateRenderTarget(renderTarget);
info.memory["textures"] = info.memory["textures"]! - 1;
}