aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library_gl.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index a26b6032..5d96744c 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -1103,6 +1103,7 @@ var LibraryGL = {
Module.ctx.enableVertexAttribArray(this.texCoordLoc);
Module.ctx.activeTexture(Module.ctx.TEXTURE0);
+ this.textureId = Module.ctx.createTexture();
Module.ctx.bindTexture(Module.ctx.TEXTURE_2D, this.textureId);
Module.ctx.uniform1i(this.textureLocation, 0);