update instance fix?
parent
148c06f1c9
commit
46194abb83
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue