diff options
Diffstat (limited to 'src/webGLWorker.js')
-rw-r--r-- | src/webGLWorker.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js index 7ed6088c..502decca 100644 --- a/src/webGLWorker.js +++ b/src/webGLWorker.js @@ -669,6 +669,9 @@ function WebGLWorker() { commandBuffer.push('createBuffer', -1, id); return new WebGLBuffer(id); }; + this.deleteBuffer = function(buffer) { + commandBuffer.push('deleteBuffer', 1, buffer.id); + }; this.bindBuffer = function(target, buffer) { commandBuffer.push('bindBuffer', 2, target, buffer ? buffer.id : 0); switch (target) { |