aboutsummaryrefslogtreecommitdiff
path: root/src/library_gl.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library_gl.js')
-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 c98c7657..fbf5bb12 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -1663,6 +1663,7 @@ var LibraryGL = {
this.program = Module.ctx.createProgram();
Module.ctx.attachShader(this.program, this.vertexShader);
Module.ctx.attachShader(this.program, this.fragmentShader);
+ Module.ctx.bindAttribLocation(this.program, 0, 'a_position');
Module.ctx.linkProgram(this.program);
}