diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-31 12:56:42 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-31 12:56:42 -0700 |
commit | 92f9f71cba2781b72cf25a9c6e9dcb5e860a2dd9 (patch) | |
tree | ec4862025b25c3f38a8c17d4c681d10b82dee26f | |
parent | 2e4bc80c40d31dfe975ae11067d423a0bce33bb5 (diff) |
change getTexUnitType assertion to warnOnce
-rw-r--r-- | src/library_gl.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index 6f145e91..76501111 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -3227,7 +3227,9 @@ var LibraryGL = { #if ASSERTIONS if (!useCurrProgram) { - assert(GL.immediate.TexEnvJIT.getTexUnitType(i) != 0, "GL_TEXTURE" + i + " coords are supplied, but that texture unit is disabled in the fixed-function pipeline."); + if (GL.immediate.TexEnvJIT.getTexUnitType(i) == 0) { + Runtime.warnOnce("GL_TEXTURE" + i + " coords are supplied, but that texture unit is disabled in the fixed-function pipeline."); + } } #endif |