modeling/assets/WebGL/webgl-debug.js
function glEnumToString(value) {
  checkInit();
  var name = glEnums[value];
  return (name !== undefined) ? name :
      ("*UNKNOWN WebGL ENUM (0x" + value.toString(16) + ")");
}
function glEnumToString(value) {
  checkInit();
  var name = glEnums[value];
  return (name !== undefined) ? name :
      ("*UNKNOWN WebGL ENUM (0x" + value.toString(16) + ")");
}
function glEnumToString ( value ) { checkInit ( ) ; var name = glEnums [ value ] ; return ( name !== undefined ) ? name : ( "*UNKNOWN WebGL ENUM (0x" + value . toString ( 16 ) + ")" ) ; }
Gets an string version of an WebGL enum.

Example:
var str = WebGLDebugUtil.glEnumToString(ctx.getError());

@param {number} value Value to return an enum for
@return {string} The string version of the enum.
Gets an string version of an WebGL enum .