未验证 提交 3c80386d 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #14307 from Mugen87/dev16

Loaders: Ensure consistent ctor of CompressedTextureLoaders.
......@@ -2,7 +2,9 @@
* @author mrdoob / http://mrdoob.com/
*/
THREE.DDSLoader = function () {
THREE.DDSLoader = function ( manager ) {
THREE.CompressedTextureLoader.call( this, manager );
this._parser = THREE.DDSLoader.parse;
......
......@@ -8,7 +8,9 @@
*/
THREE.KTXLoader = function () {
THREE.KTXLoader = function ( manager ) {
THREE.CompressedTextureLoader.call( this, manager );
this._parser = THREE.KTXLoader.parse;
......
......@@ -10,7 +10,7 @@
THREE.PVRLoader = function ( manager ) {
this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
THREE.CompressedTextureLoader.call( this, manager );
this._parser = THREE.PVRLoader.parse;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册