diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-02-20 17:43:56 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-02-20 17:43:56 -0800 |
commit | 5f5e17f88b52e186f98546f0d3fb0327c211328a (patch) | |
tree | 66d18e1d76bee17ba2ba311073129f10cfbb7fdc /src | |
parent | 54ff0c7c5a1e5e98d9d41917caafb0500aaa53e9 (diff) |
do not forward enable/disable of GL_TEXTURE_2D to WebGL enable/disable, it is not needed and just warns
Diffstat (limited to 'src')
-rw-r--r-- | src/library_gl.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index 4a5861c5..7f297195 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -1026,6 +1026,7 @@ var LibraryGL = { // XXX not according to spec, and not in desktop GL, but works in some GLES1.x apparently, so support // it by forwarding to glEnableClientState _glEnableClientState(cap); + return; } else if (!(cap in validCapabilities)) { return; } @@ -1040,6 +1041,7 @@ var LibraryGL = { // XXX not according to spec, and not in desktop GL, but works in some GLES1.x apparently, so support // it by forwarding to glDisableClientState _glDisableClientState(cap); + return; } else if (!(cap in validCapabilities)) { return; } |