diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-04-15 13:16:50 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-04-15 13:16:50 -0700 |
commit | a605fdc731af1afb84b0692fdf6c3fb1cc3c84ff (patch) | |
tree | 79541c63e28eb8843422a807142a4819fad8ef43 | |
parent | 7ab3328b2edc9e14f89057aa96bdecdde73808e1 (diff) |
GL warnings
-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 73f4548e..99514740 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -867,6 +867,7 @@ var LibraryGL = { $GLEmulation: { init: function() { // Add some emulation workarounds + console.log('WARNING: using emscripten GL emulation. This is a collection of limited workarounds, do not expect it to work'); _glEnable = function(cap) { if (cap == 0x0DE1) return; // GL_TEXTURE_2D if (cap == 0x0B20) return; // GL_LINE_SMOOTH @@ -965,6 +966,7 @@ var LibraryGL = { initted: false, init: function() { + console.log('WARNING: using emscripten GL immediate mode emulation. This is very limited in what it supports'); this.vertexShader = Module.ctx.createShader(Module.ctx.VERTEX_SHADER); Module.ctx.shaderSource(this.vertexShader, 'attribute vec3 a_position; \n\ attribute vec2 a_texCoord; \n\ |