diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-06-13 16:54:31 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-06-13 16:54:31 -0700 |
commit | 955d27814497fbe9f628b208d202d9a61dfc3a74 (patch) | |
tree | ec4a57f65a0c11bfacfbbb275b404e66dd14224b | |
parent | 34f6c172da1dd2bd51e80a06007efd75581c38a3 (diff) |
drawElements, prepare for cubegeom proxy test
-rw-r--r-- | src/webGLWorker.js | 3 | ||||
-rw-r--r-- | tests/test_browser.py | 3 |
2 files changed, 6 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); diff --git a/tests/test_browser.py b/tests/test_browser.py index 257a6430..2b3400c2 100644 --- a/tests/test_browser.py +++ b/tests/test_browser.py @@ -1480,6 +1480,9 @@ keydown(100);keyup(100); // trigger the end def test_cubegeom(self): self.btest('cubegeom.c', reference='cubegeom.png', args=['-O2', '-g', '-s', 'LEGACY_GL_EMULATION=1']) + #def test_cubegeom_proxy(self): + # self.btest('cubegeom.c', reference='cubegeom.png', args=['-O2', '-g', '-s', 'LEGACY_GL_EMULATION=1', '--proxy-to-worker'], manual_reference=True, post_build=self.post_manual_reftest) + def test_cubegeom_proc(self): open('side.c', 'w').write(r''' |