void releaseRenderTexture(RenderTexture renderTexture)

Source

void releaseRenderTexture(RenderTexture renderTexture) {
  for (int i = 0; i < _activeRenderTextures.length; i++) {
    if (identical(renderTexture, _activeRenderTextures[i])) {
      _activeRenderTextures[i] = null;
      _renderingContext.activeTexture(gl.TEXTURE0 + i);
      _renderingContext.bindTexture(gl.TEXTURE_2D, null);
    }
  }
}