diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/webGLWorker.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js index b6762740..fc133c0d 100644 --- a/src/webGLWorker.js +++ b/src/webGLWorker.js @@ -682,6 +682,10 @@ function WebGLWorker() { if (typeof something !== 'number') something = new something.constructor(something); commandBuffer.push('bufferData', 3, target, something, usage); }; + this.bufferSubData = function(target, offset, something) { + if (typeof something !== 'number') something = new something.constructor(something); + commandBuffer.push('bufferSubData', 3, target, offset, something); + }; this.viewport = function(x, y, w, h) { commandBuffer.push('viewport', 4, x, y, w, h); }; |