aboutsummaryrefslogtreecommitdiff
path: root/src/webGLClient.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/webGLClient.js')
-rw-r--r--src/webGLClient.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/webGLClient.js b/src/webGLClient.js
index 1c34f12d..663c693a 100644
--- a/src/webGLClient.js
+++ b/src/webGLClient.js
@@ -9,6 +9,7 @@ function WebGLClient() {
function fixArgs(command, args) {
switch (command) {
+ case 'getProgramParameter':
case 'getShaderParameter':
case 'uniform4fv':
case 'uniformMatrix4fv':
@@ -46,8 +47,8 @@ function WebGLClient() {
var args = fixArgs(command, buffer.slice(i, i+numArgs));
i += numArgs;
//dump('issue+: ' + command + '(' + args + '), ' + numArgs + '\n');
- if (command === 'getShaderParameter') {
- assert(ctx.getShaderParameter(args[0], args[1]), 'we cannot handle errors, we are async proxied WebGL');
+ if (command === 'getShaderParameter' || command === 'getProgramParameter') {
+ assert(ctx[command](args[0], args[1]), 'we cannot handle errors, we are async proxied WebGL');
} else {
ctx[command].apply(ctx, args);
}