diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-06-18 14:31:30 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-06-18 14:31:30 -0700 |
commit | ac164b522eb5c07067fb7781e29585f950ad1699 (patch) | |
tree | 121d28e704bad08f9cbdbd262601db954260a4ac /src | |
parent | 27076a2fc9914314cfe40923cb84ad87f47a9d3e (diff) |
proxy framebufferRenderbuffer
Diffstat (limited to 'src')
-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 13acc037..0ffddb15 100644 --- a/src/webGLClient.js +++ b/src/webGLClient.js @@ -30,6 +30,7 @@ function WebGLClient() { case 'bindFramebuffer': case 'bindTexture': case 'bindBuffer': args[1] = args[1] ? objects[args[1]] : null; break; + case 'framebufferRenderbuffer': case 'framebufferTexture2D': args[3] = args[3] ? objects[args[3]] : null; break; } return args; diff --git a/src/webGLWorker.js b/src/webGLWorker.js index ae99d19f..367306c8 100644 --- a/src/webGLWorker.js +++ b/src/webGLWorker.js @@ -824,6 +824,9 @@ function WebGLWorker() { this.renderbufferStorage = function(target, internalformat, width, height) { commandBuffer.push('renderbufferStorage', 4, target, internalformat, width, height); }; + this.framebufferRenderbuffer = function(target, attachment, renderbuffertarget, renderbuffer) { + commandBuffer.push('framebufferRenderbuffer', 4, target, attachment, renderbuffertarget, renderbuffer ? renderbuffer.id : 0); + }; // Setup var dropped = 0; |