function destroyTexture(texture) {
  const gl = this.gl;
  const textures = this.cache.gl.textures;
  for (let key in textures) {
    let txt = textures[key];
    if (txt !== texture) continue;
    gl.deleteTexture(txt);
    delete textures[key];
    txt = null;
    break;
  };
}
Lookup for the texture inside our texture pool and free it from memory
@param {WebGLTexture} texture