提交 8439417f 编写于 作者: M Mr.doob

Small patch for getting IEWEBGL support. Fixes #2173.

上级 9a15ae0a
......@@ -76,7 +76,9 @@ THREE.BinaryLoader.prototype.loadAjaxBuffers = function ( json, callback, binary
if ( xhr.status == 200 || xhr.status == 0 ) {
THREE.BinaryLoader.prototype.createBinModel( xhr.response, callback, texturePath, json.materials );
var buffer = xhr.response;
if ( buffer === undefined ) buffer = ( new Uint8Array( xhr.responseBody ) ).buffer; // IEWEBGL needs this
THREE.BinaryLoader.prototype.createBinModel( buffer, callback, texturePath, json.materials );
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册