diff --git a/src/renderer/webgl/RenderTarget.js b/src/renderer/webgl/RenderTarget.js index d95f02f90..3bcb9797c 100644 --- a/src/renderer/webgl/RenderTarget.js +++ b/src/renderer/webgl/RenderTarget.js @@ -256,6 +256,11 @@ var RenderTarget = new Class({ */ willResize: function (width, height) { + if (typeof width !== 'number' || typeof height !== 'number') + { + return false; + } + width = Math.round(width * this.scale); height = Math.round(height * this.scale);