function getOutputTexture(stage) {
  while (defined(stage.length)) {
    stage = stage.get(stage.length - 1);
  }
  return stage.outputTexture;
}
Clears all of the framebuffers used by the stages.

@param {Context} context The context.

@private