beta.r3js.org
-=yb4f310 2017-11-16 00:17:42 +01:00
parent 57e5f98d26
commit 7cd8a2a3d0
1 changed files with 10 additions and 4 deletions

View File

@ -422,9 +422,15 @@ GameLib.D3.Renderer.prototype.render = function(delta, scenes) {
GameLib.D3.Renderer.prototype.setSize = function(width, height) {
this.width = width;
this.height = height;
this.instance.setSize(
this.width,
this.height
);
if (this.instance) {
this.instance.setSize(
this.width,
this.height
);
} else {
console.log('renderer not ready to set size');
}
};