diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-06-18 14:19:25 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-06-18 14:20:05 -0700 |
commit | d25fa198549b20c194f3c96a172c8bfc58aa1943 (patch) | |
tree | 768639fcf5cb56a0d5e7ccc8edd362cd3935db50 | |
parent | a7ab04e3eeda3f40e6daef4d6026ac87b1f39505 (diff) |
proxy framebufferTexture2D
-rw-r--r-- | src/webGLClient.js | 1 | ||||
-rw-r--r-- | src/webGLWorker.js | 3 |
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; |