onRenderTargetDispose method

void onRenderTargetDispose(
  1. Event event
)

Implementation

void onRenderTargetDispose(Event event) {
  final renderTarget = event.target;

  renderTarget.removeEventListener('dispose', onRenderTargetDispose);

  deallocateRenderTarget(renderTarget);

  info.memory["textures"] = info.memory["textures"]! - 1;
}