aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/webGLWorker.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js
index 2ed63b44..5139d60e 100644
--- a/src/webGLWorker.js
+++ b/src/webGLWorker.js
@@ -596,7 +596,12 @@ function WebGLWorker() {
this.enableVertexAttribArray = function(index) {
commandBuffer.push('enableVertexAttribArray', 1, index);
};
-
+ this.disableVertexAttribArray = function(index) {
+ commandBuffer.push('disableVertexAttribArray', 1, index);
+ };
+ this.drawArrays = function(mode, first, count) {
+ commandBuffer.push('drawArrays', 3, mode, first, count);
+ };
// Setup
var postMainLoop = Module['postMainLoop'];