浏览代码

Update DataTextureLoader.js

Add comment.
Michael Herzog 2 年之前
父节点
当前提交
b2fea4856f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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.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();