diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-02-06 16:15:38 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-02-06 16:15:38 -0800 |
commit | 8753da903ae260ef97b5dd23950b7dc33e9935c1 (patch) | |
tree | 1732c1fdc52cc9282a294e1682b86a91059612e4 /src | |
parent | 1c1d7036c6699aa91e0a29a07ec0872bc8a8dec3 (diff) |
do not throw on an incorrect glEnableClientState, just warn
Diffstat (limited to 'src')
-rw-r--r-- | src/library_gl.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index 6144f548..c43b424d 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -2346,7 +2346,10 @@ var LibraryGL = { case 0x8076: // GL_COLOR_ARRAY attrib = GL.immediate.COLOR; break; default: - throw 'unhandled clientstate: ' + cap; +#if ASSERTIONS + Module.printErr('WARNING: unhandled clientstate: ' + cap); +#endif + return; } if (disable && GL.immediate.enabledClientAttributes[attrib]) { GL.immediate.enabledClientAttributes[attrib] = false; |