aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'])