aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library_gl.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index 2e1e5d6e..0b118555 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -1131,8 +1131,9 @@ var LibraryGL = {
Module.ctx.enableVertexAttribArray(this.texCoordLocation);
Module.ctx.activeTexture(Module.ctx.TEXTURE0);
- this.textureId = Module.ctx.createTexture();
- Module.ctx.bindTexture(Module.ctx.TEXTURE_2D, this.textureId);
+ // Assume the texture is bound
+ //this.textureId = Module.ctx.getParameter(Module.ctx.TEXTURE_BINDING_2D);
+ //Module.ctx.bindTexture(Module.ctx.TEXTURE_2D, this.textureId);
Module.ctx.uniform1i(this.textureLocation, 0);