aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/library_gl.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index 4fb8a481..8346e87a 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -1030,9 +1030,9 @@ var LibraryGL = {
Module.ctx.enableVertexAttribArray(this.texCoordLocation);
// Assume the texture is bound
- this.textureId = Module.ctx.getParameter(Module.ctx.TEXTURE_BINDING_2D);
+ var texture = Module.ctx.getParameter(Module.ctx.TEXTURE_BINDING_2D);
Module.ctx.activeTexture(Module.ctx.TEXTURE0);
- Module.ctx.bindTexture(Module.ctx.TEXTURE_2D, this.textureId);
+ Module.ctx.bindTexture(Module.ctx.TEXTURE_2D, texture);
Module.ctx.uniform1i(this.textureLocation, 0);
Module.ctx.uniformMatrix4fv(this.modelViewLocation, 0 /* GL_FALSE */, GL.immediate.matrix["m"]);