aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-06-17 14:42:38 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-06-17 14:42:38 -0700
commit80bf1cbb1ce055d19937515cfced887f2a31ece6 (patch)
tree14eb827807ca40e61962f89ef660f401cc79c4a0
parent1fe3fd56ffd0f67442638ba14d04ea655564e1ca (diff)
vertexAttrib4fv; enable proxied test_cubegeom_color2
-rw-r--r--src/webGLWorker.js3
-rw-r--r--tests/test_browser.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js
index fc133c0d..ff4d94f9 100644
--- a/src/webGLWorker.js
+++ b/src/webGLWorker.js
@@ -660,6 +660,9 @@ function WebGLWorker() {
this.uniformMatrix4fv = function(location, transpose, data) {
commandBuffer.push('uniformMatrix4fv', 3, location.id, transpose, new Float32Array(data));
};
+ this.vertexAttrib4fv = function(index, values) {
+ commandBuffer.push('vertexAttrib4fv', 2, index, new Float32Array(values));
+ };
this.createBuffer = function() {
var id = nextId++;
commandBuffer.push('createBuffer', -1, id);
diff --git a/tests/test_browser.py b/tests/test_browser.py
index 0708c103..be84545b 100644
--- a/tests/test_browser.py
+++ b/tests/test_browser.py
@@ -1532,7 +1532,7 @@ void *getBindBuffer() {
self.btest('cubegeom_mt.c', reference='cubegeom_mt.png', args=['-s', 'LEGACY_GL_EMULATION=1']) # multitexture
def test_cubegeom_color2(self):
- self.btest('cubegeom_color2.c', reference='cubegeom_color2.png', args=['-s', 'LEGACY_GL_EMULATION=1'])
+ self.btest('cubegeom_color2.c', reference='cubegeom_color2.png', args=['-s', 'LEGACY_GL_EMULATION=1'], also_proxied=True)
def test_cubegeom_texturematrix(self):
self.btest('cubegeom_texturematrix.c', reference='cubegeom_texturematrix.png', args=['-s', 'LEGACY_GL_EMULATION=1'])