Remove access to renderer context

This commit is contained in:
yushijinhun 2020-01-01 15:55:17 +08:00
parent 1f5b1aa237
commit cb1f00dd17
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
1 changed files with 0 additions and 1 deletions

View File

@ -76,7 +76,6 @@ export class SkinViewer {
this.renderer = new THREE.WebGLRenderer({ alpha: true, antialias: false }); this.renderer = new THREE.WebGLRenderer({ alpha: true, antialias: false });
this.renderer.setSize(300, 300); // default size this.renderer.setSize(300, 300); // default size
this.renderer.context.getShaderInfoLog = () => ""; // shut firefox up
this.domElement.appendChild(this.renderer.domElement); this.domElement.appendChild(this.renderer.domElement);
this.playerObject = new PlayerObject(this.layer1Material, this.layer2Material, this.capeMaterial); this.playerObject = new PlayerObject(this.layer1Material, this.layer2Material, this.capeMaterial);