set size
parent
57e5f98d26
commit
7cd8a2a3d0
|
@ -422,9 +422,15 @@ GameLib.D3.Renderer.prototype.render = function(delta, scenes) {
|
||||||
GameLib.D3.Renderer.prototype.setSize = function(width, height) {
|
GameLib.D3.Renderer.prototype.setSize = function(width, height) {
|
||||||
this.width = width;
|
this.width = width;
|
||||||
this.height = height;
|
this.height = height;
|
||||||
this.instance.setSize(
|
|
||||||
this.width,
|
if (this.instance) {
|
||||||
this.height
|
this.instance.setSize(
|
||||||
);
|
this.width,
|
||||||
|
this.height
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
console.log('renderer not ready to set size');
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue