aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2013-10-10 18:10:48 +0300
committerJukka Jylänki <jujjyl@gmail.com>2013-10-10 18:10:48 +0300
commit3ed0d953500f3fea00ee445678c9c52760cfac13 (patch)
tree8232409c1c9f7c775ffe1b4bc754be426e2b64f8
parentc272830feb851a139f9c6a0bd52e53a9dfef1bb7 (diff)
Fix whitespace in GL.populateUniformTable.
-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 91bb74de..6e0e04dc 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -456,7 +456,7 @@ var LibraryGL = {
// A program's uniformTable maps the string name of an uniform to an integer location of that uniform.
// The global GL.uniforms map maps integer locations to WebGLUniformLocations.
var numUniforms = Module.ctx.getProgramParameter(p, Module.ctx.ACTIVE_UNIFORMS);
- for(var i = 0; i < numUniforms; ++i) {
+ for (var i = 0; i < numUniforms; ++i) {
var u = Module.ctx.getActiveUniform(p, i);
var name = u.name;
@@ -474,7 +474,7 @@ var LibraryGL = {
ptable[name] = [u.size, id];
GL.uniforms[id] = loc;
- for(var j = 1; j < u.size; ++j) {
+ for (var j = 1; j < u.size; ++j) {
var n = name + '['+j+']';
loc = Module.ctx.getUniformLocation(p, n);
id = GL.getNewId(GL.uniforms);