index.js
function() {
		if (!Texture.FORCE_POT) {
			//If minFilter is anything but LINEAR or NEAREST
			//or if wrapS or wrapT are not CLAMP_TO_EDGE...
			var wrongFilter = (this.minFilter !== Texture.Filter.LINEAR && this.minFilter !== Texture.Filter.NEAREST);
			var wrongWrap = (this.wrapS !== Texture.Wrap.CLAMP_TO_EDGE || this.wrapT !== Texture.Wrap.CLAMP_TO_EDGE);

			if ( wrongFilter || wrongWrap ) {
				if (!isPowerOfTwo(this.width) || !isPowerOfTwo(this.height))
					throw new Error(wrongFilter 
							? "Non-power-of-two textures cannot use mipmapping as filter"
							: "Non-power-of-two textures must use CLAMP_TO_EDGE as wrap");
			}
		}
	}
function() {
		if (!Texture.FORCE_POT) {
			//If minFilter is anything but LINEAR or NEAREST
			//or if wrapS or wrapT are not CLAMP_TO_EDGE...
			var wrongFilter = (this.minFilter !== Texture.Filter.LINEAR && this.minFilter !== Texture.Filter.NEAREST);
			var wrongWrap = (this.wrapS !== Texture.Wrap.CLAMP_TO_EDGE || this.wrapT !== Texture.Wrap.CLAMP_TO_EDGE);

			if ( wrongFilter || wrongWrap ) {
				if (!isPowerOfTwo(this.width) || !isPowerOfTwo(this.height))
					throw new Error(wrongFilter 
							? "Non-power-of-two textures cannot use mipmapping as filter"
							: "Non-power-of-two textures must use CLAMP_TO_EDGE as wrap");
			}
		}
	}
function ( ) { if ( ! Texture . FORCE_POT ) { //If minFilter is anything but LINEAR or NEAREST //or if wrapS or wrapT are not CLAMP_TO_EDGE... var wrongFilter = ( this . minFilter !== Texture . Filter . LINEAR && this . minFilter !== Texture . Filter . NEAREST ) ; var wrongWrap = ( this . wrapS !== Texture . Wrap . CLAMP_TO_EDGE || this . wrapT !== Texture . Wrap . CLAMP_TO_EDGE ) ; if ( wrongFilter || wrongWrap ) { if ( ! isPowerOfTwo ( this . width ) || ! isPowerOfTwo ( this . height ) ) throw new Error ( wrongFilter ? "Non-power-of-two textures cannot use mipmapping as filter" : "Non-power-of-two textures must use CLAMP_TO_EDGE as wrap" ) ; } } }
If FORCE_POT is false, we verify this texture to see if it is valid,
as per non-power-of-two rules. If it is non-power-of-two, it must have
a wrap mode of CLAMP_TO_EDGE, and the minification filter must be LINEAR
or NEAREST. If we don't satisfy these needs, an error is thrown.

@method  _checkPOT
@private
@return {[type]} [description]
If FORCE_POT is false we verify this texture to see if it is valid as per non - power - of - two rules . If it is non - power - of - two it must have a wrap mode of CLAMP_TO_EDGE and the minification filter must be LINEAR or NEAREST . If we don t satisfy these needs an error is thrown .