diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2014-02-21 00:41:33 +0200 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2014-02-21 00:42:49 +0200 |
commit | 50851c70efe445da8b56af1f59b5094845007bf1 (patch) | |
tree | f1fe79b691bbf5dc71ea53f90eff9e10f292cf11 /src/library.js | |
parent | 7a4a695ee8bf825ad9cffd04eece1b5d6feb75c5 (diff) |
When LEGACY_GL_EMULATION is enabled, we cannot use WebGL VAO extension effectively, since we need to maintain the VAO state in the emulation layer to be able to programmatically construct the appropriate VBOs for rendering. Therefore only use WebGL VAO extension only when LEGACY_GL_EMULATION is not set. (An alternative could be to glGet() the VAO state when bound, or to maintain a shadow cache alongside the VAOs in the emulation layer, but that wholly defeats the performance purposes of VAOs, so it's the same to just never use the VAO extension when emulating). This fixes the browser GL emulation VAO tests.
Diffstat (limited to 'src/library.js')
0 files changed, 0 insertions, 0 deletions