void activateRenderTexture(RenderTexture renderTexture)

Source

void activateRenderTexture(RenderTexture renderTexture) {
  if (!identical(renderTexture, _activeRenderTextures[0])) {
    _activeRenderProgram.flush();
    _activeRenderTextures[0] = renderTexture;
    renderTexture.activate(this, gl.TEXTURE0);
  }
}