Browse Source

Update DataTextureLoader.js

Add comment.
Michael Herzog 2 years ago
parent
commit
b2fea4856f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/loaders/DataTextureLoader.js

+ 1 - 1
src/loaders/DataTextureLoader.js

@@ -30,7 +30,7 @@ class DataTextureLoader extends Loader {
 		loader.setWithCredentials( scope.withCredentials );
 		loader.setWithCredentials( scope.withCredentials );
 		loader.load( url, function ( buffer ) {
 		loader.load( url, function ( buffer ) {
 
 
-			const texData = scope.parse( buffer );
+			const texData = scope.parse( buffer ); // TODO: Use try/catch here and throw errors in derived loaders, see #26412
 
 
 			if ( ! texData ) return onError();
 			if ( ! texData ) return onError();