aboutsummaryrefslogtreecommitdiff
path: root/src/library_gl.js
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2013-12-12 19:03:49 +0200
committerJukka Jylänki <jujjyl@gmail.com>2014-01-14 12:42:42 +0200
commit8c93579ff8761d06d691aec0d73124956a2d6452 (patch)
tree813fa875811d9f45011629dbd5ab72ffd573fb4f /src/library_gl.js
parent3d05d222cbbb0ab6b8be12c5ea86fdf49d0d691a (diff)
Add test for glGetTexEnv implementation. Fix output of GL_TEXTURE_ENV_COLOR color data from glGetTexEnvfv.
Diffstat (limited to 'src/library_gl.js')
-rw-r--r--src/library_gl.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index 9dceb058..ffc395b4 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -3424,9 +3424,9 @@ var LibraryGL = {
switch (pname) {
case GL_TEXTURE_ENV_COLOR:
{{{ makeSetValue('param', '0', 'env.envColor[0]', 'float') }}};
- {{{ makeSetValue('param', '1', 'env.envColor[1]', 'float') }}};
- {{{ makeSetValue('param', '2', 'env.envColor[2]', 'float') }}};
- {{{ makeSetValue('param', '3', 'env.envColor[3]', 'float') }}};
+ {{{ makeSetValue('param', '4', 'env.envColor[1]', 'float') }}};
+ {{{ makeSetValue('param', '8', 'env.envColor[2]', 'float') }}};
+ {{{ makeSetValue('param', '12', 'env.envColor[3]', 'float') }}};
return;
}
}