activateRenderTexture method

void activateRenderTexture(
  1. RenderTexture renderTexture
)

Implementation

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