summaryrefslogtreecommitdiff
path: root/js/matrix.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-11-22 01:21:35 -0500
committerJules Laplace <jules@okfoc.us>2014-11-22 01:21:35 -0500
commit69e0de28cb98b90d630c76d25f483ba59802d1d2 (patch)
tree909cddfeb49fc45072efc94d14af3813e39d44d2 /js/matrix.js
parenta33bb28019c25fd885bb6fe5402fc87a2dc04829 (diff)
big shader thing
Diffstat (limited to 'js/matrix.js')
-rw-r--r--js/matrix.js2
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)