diff options
Diffstat (limited to 'src/webGLWorker.js')
-rw-r--r-- | src/webGLWorker.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js index 86bdf206..eb20b89e 100644 --- a/src/webGLWorker.js +++ b/src/webGLWorker.js @@ -526,6 +526,9 @@ function WebGLWorker() { commandBuffer.push('createShader', -2, type, id); return { id: id, what: 'shader', type: type }; }; + this.deleteShader = function(shader) { + commandBuffer.push('deleteShader', 1, shader.id); + }; this.shaderSource = function(shader, source) { shader.source = source; commandBuffer.push('shaderSource', 2, shader.id, source); @@ -541,6 +544,9 @@ function WebGLWorker() { commandBuffer.push('createProgram', -1, id); return new WebGLProgram(id); }; + this.deleteProgram = function(program) { + commandBuffer.push('deleteProgram', 1, program.id); + }; this.attachShader = function(program, shader) { program.shaders.push(shader); commandBuffer.push('attachShader', 2, program.id, shader.id); |