diff options
Diffstat (limited to 'src/library_gl.js')
-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; |