function getTextureTypeForArrayType(gl, src, defaultType) {
  if (isArrayBuffer(src)) {
    return typedArrays.getGLTypeForTypedArray(src);
  }

  return defaultType || UNSIGNED_BYTE;
}
Gets the texture type for a given array type.
@param {WebGLRenderingContext} gl the WebGLRenderingContext
@return {number} the gl texture type
@private