activateRenderTextureAt method

void activateRenderTextureAt(
  1. RenderTexture renderTexture,
  2. int index
)

Implementation

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