aboutsummaryrefslogtreecommitdiff
path: root/src/webGLClient.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/webGLClient.js')
-rw-r--r--src/webGLClient.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/webGLClient.js b/src/webGLClient.js
index 6b32fdf5..736b1ae3 100644
--- a/src/webGLClient.js
+++ b/src/webGLClient.js
@@ -12,6 +12,7 @@ function WebGLClient() {
case 'getProgramParameter':
case 'getShaderParameter':
case 'uniform1i':
+ case 'uniform1f':
case 'uniform4fv':
case 'uniformMatrix4fv':
case 'getUniformLocation':
@@ -36,6 +37,7 @@ function WebGLClient() {
var command = buffer[i++];
assert(typeof command === 'string')
var numArgs = buffer[i++];
+ assert(typeof numArgs === 'number', command);
//dump('issue ' + [command, numArgs, 'peek:' + buffer.slice(i, i+5)] + '\n');
if (numArgs === 0) {
//dump('issue: ' + command + '\n');