docs: function getTexture(gl, src, opts) {
    if (typeof src === 'string') {
      // Url, load the image
      return loadImage(src)
        .then(data => getTextureFromData(gl, data, opts))
        .catch(error => {
          throw new Error(`Could not load texture from ${src}: ${error}`);
        });
    }
    return new Promise(resolve => resolve(getTextureFromData(gl, src, opts)));
  }