diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-07-24 14:35:14 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-07-24 14:35:14 -0700 |
commit | df425dc2c23b5ec1ad0fa92e693f10673ddb0b2f (patch) | |
tree | 82eb5c7db749e1eff479f6ad6eb58d6f9df3da55 | |
parent | 4900b45ecf0a9baec2735776b75afd5207696f2e (diff) |
fix ceilPower2 parameter (it worked before, luckily for it it had the right variable in the outer scope..)
-rw-r--r-- | src/library_gl.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index f3cea384..db81e358 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -1440,7 +1440,7 @@ var LibraryGL = { generateTempBuffers: function() { function ceilPower2(x) { - return Math.pow(2, Math.ceil(Math.log(i || 1)/Math.log(2))); + return Math.pow(2, Math.ceil(Math.log(x || 1)/Math.log(2))); } this.tempBufferIndexLookup = new Uint8Array(this.MAX_TEMP_BUFFER_SIZE+1); var last = -1, curr = -1; |