aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/webGLWorker.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js
index 3154f904..5b25a24e 100644
--- a/src/webGLWorker.js
+++ b/src/webGLWorker.js
@@ -658,6 +658,9 @@ function WebGLWorker() {
this.drawArrays = function(mode, first, count) {
commandBuffer.push('drawArrays', 3, mode, first, count);
};
+ this.drawElements = function(mode, count, type, offset) {
+ commandBuffer.push('drawElements', 4, mode, count, type, offset);
+ };
this.getError = function() {
// optimisticaly return success; client will abort on an actual error. we assume an error-free async workflow
commandBuffer.push('getError', 0);