summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-06-18 14:31:30 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-06-18 14:31:30 -0700
commitac164b522eb5c07067fb7781e29585f950ad1699 (patch)
tree121d28e704bad08f9cbdbd262601db954260a4ac /src
parent27076a2fc9914314cfe40923cb84ad87f47a9d3e (diff)
proxy framebufferRenderbuffer
Diffstat (limited to 'src')
-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 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;