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