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) {
|
||||
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');
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue