diff options
Diffstat (limited to 'src/webGLWorker.js')
-rw-r--r-- | src/webGLWorker.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js index 3457f097..3ddbdf76 100644 --- a/src/webGLWorker.js +++ b/src/webGLWorker.js @@ -455,13 +455,13 @@ function WebGLWorker() { } }; - // GL - function revname(name) { for (var x in that) if (that[x] === name) return x; return null; } + // GL + this.getParameter = function(name) { assert(name); if (name in this.prefetchedParameters) return this.prefetchedParameters[name]; @@ -492,10 +492,13 @@ function WebGLWorker() { var id = nextId++; commandBuffer.push('createShader', -2, type, id); return { id: id, what: 'shader', type: type }; - } + }; this.shaderSource = function(shader, source) { commandBuffer.push('shaderSource', 2, shader.id, source); - } + }; + this.compileShader = function(shader) { + commandBuffer.push('compileShader', 1, shader.id); + }; // Setup var postMainLoop = Module['postMainLoop']; |