aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/webGLClient.js1
-rw-r--r--src/webGLWorker.js3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/webGLClient.js b/src/webGLClient.js
index 663c693a..6b32fdf5 100644
--- a/src/webGLClient.js
+++ b/src/webGLClient.js
@@ -11,6 +11,7 @@ function WebGLClient() {
switch (command) {
case 'getProgramParameter':
case 'getShaderParameter':
+ case 'uniform1i':
case 'uniform4fv':
case 'uniformMatrix4fv':
case 'getUniformLocation':
diff --git a/src/webGLWorker.js b/src/webGLWorker.js
index 7364c6b0..0a03787e 100644
--- a/src/webGLWorker.js
+++ b/src/webGLWorker.js
@@ -607,6 +607,9 @@ function WebGLWorker() {
this.useProgram = function(program) {
commandBuffer.push('useProgram', 1, program.id);
};
+ this.uniform1i = function(location, data) {
+ commandBuffer.push('uniform1i', 2, location.id, data);
+ };
this.uniform4fv = function(location, data) {
commandBuffer.push('uniform4fv', 2, location.id, new Float32Array(data));
};