onRenderTargetDispose method

void onRenderTargetDispose(
  1. Event event
)

Implementation

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

  renderTarget.removeEventListener('dispose', onRenderTargetDispose);

  deallocateRenderTarget(renderTarget);

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