diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-11-22 01:21:35 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-11-22 01:21:35 -0500 |
| commit | 69e0de28cb98b90d630c76d25f483ba59802d1d2 (patch) | |
| tree | 909cddfeb49fc45072efc94d14af3813e39d44d2 /js/matrix.js | |
| parent | a33bb28019c25fd885bb6fe5402fc87a2dc04829 (diff) | |
big shader thing
Diffstat (limited to 'js/matrix.js')
| -rw-r--r-- | js/matrix.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
