From 69e0de28cb98b90d630c76d25f483ba59802d1d2 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 22 Nov 2014 01:21:35 -0500 Subject: big shader thing --- js/matrix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/matrix.js') diff --git a/js/matrix.js b/js/matrix.js index 8108568..a36d3db 100644 --- a/js/matrix.js +++ b/js/matrix.js @@ -5,7 +5,7 @@ function Matrix (w,h,f){ this.initialize() } Matrix.prototype.initialize = function(){ - var w = this.w, h = this.h, f = this.f + var w = this.w || 1, h = this.h || 1, f = this.f var aa = new Array (h) for (var i = 0; i < h; i++) { aa[i] = new Array (w) -- cgit v1.2.3-70-g09d2