diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/webGLWorker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js index 984c201e..559e13bd 100644 --- a/src/webGLWorker.js +++ b/src/webGLWorker.js @@ -646,7 +646,7 @@ function WebGLWorker() { commandBuffer.push('bindBuffer', 2, target, buffer ? buffer.id : 0); }; this.bufferData = function(target, something, usage) { - if (typeof something !== 'number') something = new Uint8Array(something); + if (typeof something !== 'number') something = new something.constructor(something); commandBuffer.push('bufferData', 3, target, something, usage); }; this.viewport = function(x, y, w, h) { |