diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-02-17 13:59:48 +0100 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-02-17 13:59:48 +0100 |
commit | a124fadbf7fd210a7a6f6649dc7147438215d6ce (patch) | |
tree | 8f6466bdcd131fa1d1d6ccb54df88695fb844d4a /src | |
parent | 949311fde73446d011d2a04eab0bf06c519a405b (diff) |
another gl workaround
Diffstat (limited to 'src')
-rw-r--r-- | src/library_gl.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index 1f664717..9ee379d0 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -1018,6 +1018,10 @@ var LibraryGL = { if (cap == 0x0B60 /* GL_FOG */) { GLEmulation.fogEnabled = true; return; + } else if (cap == 0x0de1 /* GL_TEXTURE_2D */) { + // 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); } else if (!(cap in validCapabilities)) { return; } @@ -1028,6 +1032,10 @@ var LibraryGL = { if (cap == 0x0B60 /* GL_FOG */) { GLEmulation.fogEnabled = false; return; + } else if (cap == 0x0de1 /* GL_TEXTURE_2D */) { + // 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); } else if (!(cap in validCapabilities)) { return; } |