design/gpu-programming/webgl/experiment/game-of-life/external/webgl-utils.js
function getExtensionWithKnownPrefixes(gl, name) {
    for (var ii = 0; ii < browserPrefixes.length; ++ii) {
      var prefixedName = browserPrefixes[ii] + name;
      var ext = gl.getExtension(prefixedName);
      if (ext) {
        return ext;
      }
    }
    return undefined;
  }
function getExtensionWithKnownPrefixes(gl, name) {
    for (var ii = 0; ii < browserPrefixes.length; ++ii) {
      var prefixedName = browserPrefixes[ii] + name;
      var ext = gl.getExtension(prefixedName);
      if (ext) {
        return ext;
      }
    }
    return undefined;
  }
function getExtensionWithKnownPrefixes ( gl , name ) { for ( var ii = 0 ; ii < browserPrefixes . length ; ++ ii ) { var prefixedName = browserPrefixes [ ii ] + name ; var ext = gl . getExtension ( prefixedName ) ; if ( ext ) { return ext ; } } return undefined ; }
Given an extension name like WEBGL_compressed_texture_s3tc
returns the supported version extension, like
WEBKIT_WEBGL_compressed_teture_s3tc
@param {string} name Name of extension to look for
@return {WebGLExtension} The extension or undefined if not
found.
@memberOf module:webgl-utils
Given an extension name like WEBGL_compressed_texture_s3tc returns the supported version extension like WEBKIT_WEBGL_compressed_teture_s3tc