diff options
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; |