fix : renderer resize on window resize

This commit is contained in:
jdescottes
2013-11-02 00:00:38 +01:00
parent 8a380b6c78
commit e0d63bf295
3 changed files with 14 additions and 5 deletions

View File

@@ -212,7 +212,7 @@
* @private
*/
ns.FrameRenderer.prototype.renderFrame_ = function (frame) {
if (!this.canvas) {
if (!this.canvas || frame.getWidth() != this.canvas.width || frame.getHeight() != this.canvas.height) {
this.canvas = pskl.CanvasUtils.createCanvas(frame.getWidth(), frame.getHeight());
}