update instance fix?

beta.r3js.org
-=yb4f310 2017-10-09 11:35:39 +02:00
parent 148c06f1c9
commit 46194abb83
1 changed files with 9 additions and 0 deletions

View File

@ -205,6 +205,15 @@ GameLib.D3.Renderer.prototype.createInstance = function() {
*/
GameLib.D3.Renderer.prototype.updateInstance = function() {
if (!this.instance) {
this.instance = this.createInstance();
}
if (!this.instance) {
console.warn('could not create renderer instance');
return;
}
this.instance.localClippingEnabled = this.localClipping;
this.instance.setSize(