Browse Source

EXRLoader: lgtm

Guilherme Avila 5 years ago
parent
commit
0424ecf469
2 changed files with 2 additions and 2 deletions
  1. 1 1
      examples/js/loaders/EXRLoader.js
  2. 1 1
      examples/jsm/loaders/EXRLoader.js

+ 1 - 1
examples/js/loaders/EXRLoader.js

@@ -1290,7 +1290,7 @@ THREE.EXRLoader.prototype = Object.assign( Object.create( THREE.DataTextureLoade
 
 		} else {
 
-			throw 'EXRLoader.parse: unsupported pixelType ' + EXRHeader.channels[ channelID ].pixelType + ' for ' + EXRHeader.compression + '.';
+			throw 'EXRLoader.parse: unsupported pixelType ' + pixelType + ' for ' + EXRHeader.compression + '.';
 
 		}
 

+ 1 - 1
examples/jsm/loaders/EXRLoader.js

@@ -1301,7 +1301,7 @@ EXRLoader.prototype = Object.assign( Object.create( DataTextureLoader.prototype
 
 		} else {
 
-			throw 'EXRLoader.parse: unsupported pixelType ' + EXRHeader.channels[ channelID ].pixelType + ' for ' + EXRHeader.compression + '.';
+			throw 'EXRLoader.parse: unsupported pixelType ' + pixelType + ' for ' + EXRHeader.compression + '.';
 
 		}