aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 6177c26f..348a7465 100644
--- a/src/webGLClient.js
+++ b/src/webGLClient.js
@@ -29,6 +29,7 @@ function WebGLClient() {
case 'bindFramebuffer':
case 'bindTexture':
case 'bindBuffer': args[1] = args[1] ? objects[args[1]] : null; break;
+ case 'framebufferTexture2D': args[3] = args[3] ? objects[args[3]] : null; break;
}
return args;
}
diff --git a/src/webGLWorker.js b/src/webGLWorker.js
index 64892714..dc68ea61 100644
--- a/src/webGLWorker.js
+++ b/src/webGLWorker.js
@@ -804,6 +804,9 @@ function WebGLWorker() {
this.bindFramebuffer = function(target, framebuffer) {
commandBuffer.push('bindFramebuffer', 2, target, framebuffer ? framebuffer.id : 0);
};
+ this.framebufferTexture2D = function(target, attachment, textarget, texture, level) {
+ commandBuffer.push('framebufferTexture2D', 5, target, attachment, textarget, texture ? texture.id : 0, level);
+ };
// Setup
var dropped = 0;