aboutsummaryrefslogtreecommitdiff
path: root/src/library_gl.js
AgeCommit message (Collapse)Author
2014-05-28glTex[Sub]Image* should not throw an exception, but should cause a ↵Jason Green
GL_INVALID_ENUM error on unrecognized formats or types
2014-03-05Add EXT_shader_texture_lod to trivially supported extensionsVladimir Vukicevic
2014-02-28fix glCompressedTexSubImage2D; fixes #2173Alon Zakai
2014-02-21When LEGACY_GL_EMULATION is enabled, we cannot use WebGL VAO extension ↵Jukka Jylänki
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.
2014-02-19Clean up code formatting in VAO code to adhere to coding conventions. Fix ↵Jukka Jylänki
reference to emulated GL VAO options to make the browser VAO tests pass.
2014-02-19Remove test on __depsAnthony Liot
2014-02-19Change ASSERTION by GL_ASSERTIONSAnthony Liot
2014-02-19Add support of both emulate and extension vaoAnthony Liot
2014-02-19VAO ExtensionAnthony Liot
2014-02-10fix glGetTexParameter; fixes #2112Alon Zakai
2014-02-09improve gl function copying codeAlon Zakai
2014-02-09override emscripten_ versions of gl funcs when gl emulation kicks inAlon Zakai
2014-02-09map gl functions to emscripten_ versions to avoid collisions, and to work in ↵Alon Zakai
fastcomp
2014-02-09resolve gl aliases directly, simpler for fastcompAlon Zakai
2014-02-09handle unknown shader compilation bugs a little betterAlon Zakai
2014-02-09move emscripten_GetProcAddress to a C library, so that it is less hackish ↵1.10.3Alon Zakai
and can work in fastcomp
2014-02-01move automatic OES_standard_derivatives enabling behind LEGACY_GL_EMULATION ↵Anthony Pesch
define
2014-01-23use correct bufferData method when passing a NULL pointerAnthony Pesch
2014-01-22Merge pull request #1905 from juj/glGetTexEnvAlon Zakai
Gl get tex env
2014-01-22Fix default vertex color to (1,1,1,1) and properly enable correct attribute ↵Jukka Jylänki
streams when doing immediate mode rendering when GL_FFP_ONLY is set.
2014-01-18handle #if !X in preprocessorAlon Zakai
2014-01-18Fix GL emulation cleanup to properly update the state it changes.Jukka Jylänki
2014-01-18Fix FFP GL emulation directives. The form !GL_FFP_ONLY is not supported, use ↵Jukka Jylänki
GL_FFP_ONLY == 0 instead.
2014-01-17Fix GL_FFP_ONLY path to enable/disable vertex attribute arrays as a response ↵Jukka Jylänki
to glEnable/DisableClientState instead of adjusting that during rendering.
2014-01-15Optimize FFP GL shader generation in the case when GL_COMBINE is used. This ↵Jukka Jylänki
merges duplicate texture loads into one and avoids a redundant * 1.0 op.
2014-01-15Optimize rendering from client-side memory by maintaining a set of ↵Jukka Jylänki
doublebuffered VBOs. This improves performance by reducing CPU-GPU pipeline stalls.
2014-01-15Further optimize FFP GL getRenderer() operation.Jukka Jylänki
2014-01-14Fix GLImmediate signature after rebase.Jukka Jylänki
2014-01-14Add test for glGetTexEnv implementation. Fix output of GL_TEXTURE_ENV_COLOR ↵Jukka Jylänki
color data from glGetTexEnvfv.
2014-01-14Fix typo in case of abort_noSupport in library_gl.js.Jukka Jylänki
2014-01-14Implement glGetTexEnviv and glGetTexEnvfv in GL emulation mode.Jukka Jylänki
2014-01-14Fix (harmless) out-of-bounds access on vertex attribute indices in GL ↵Jukka Jylänki
emulation init when GL_FFP_ONLY is set.
2014-01-14Fix typo in GL library abort function case.Jukka Jylänki
2014-01-14Fix GL emulation regression with VBO data caused by commit ↵Jukka Jylänki
https://github.com/kripken/emscripten/commit/4e3c1b3e862ffd8e324cd1f24ed84692bd50a83b#commitcomment-5056244
2014-01-13Reintroduce liveClientAttributes to optimize the case where GL emulation ↵Jukka Jylänki
code is called with a very large GLImmediate.MAX_TEXTURES size.
2014-01-10Optimize GL emulation prepareClientAttributes. Fix issues where the slow ↵Jukka Jylänki
path was not able to handle unaligned source data. Annotate some unsupported cases. Remove liveClientAttributes, which does not seem to be a win in profiles.
2014-01-09Fix preprocessor ifdef in GL emulation library.Jukka Jylänki
2014-01-09Add var GLctx; declaration to GL init to avoid polluting global namespace. ↵Jukka Jylänki
Replace all 'this.xxx' with 'GLImmediate.xxx' when this==GLImmediate, to avoid throwing off Closure minification pass.
2014-01-09Rename GLImmediate.matrix.lib to GLImmediate.matrixLib to not alias with ↵Jukka Jylänki
GLImmediate.matrix array that contains emulated modelview,projection and texture matrices. Restore compressedTexImage2D symbols to be closure-friendly.
2014-01-09Simplify GL emulation matrix stack initialization. Update code after rebase.Jukka Jylänki
2014-01-09Simplify verbose object dereference hierarchy in library_gl.js by storing ↵Jukka Jylänki
global WebGL context in the variable GLctx in addition to Module.ctx.
2014-01-09Simplify verbose object dereference chains in GL library by consistently ↵Jukka Jylänki
using the global name GLImmediate over the GL.immediate form.
2014-01-09Make caching of last bound GL_ARRAY_BUFFER in FFP emulation mode safe and ↵Jukka Jylänki
always enable that optimization.
2014-01-09Optimize glBindBuffer when GL emulation modes are not used. In that case, ↵Jukka Jylänki
currently bound buffers do not need to be tracked.
2014-01-09Optimize glEnableClientState by avoiding it to be called with different ↵Jukka Jylänki
param count.
2014-01-09Optimize GL FFP emulation layer by omitting redundant glUseProgram for ↵Jukka Jylänki
identical shader programs.
2014-01-09Minor optimization to FFP emulation: Use integers instead of strings as key ↵Jukka Jylänki
to FFP matrix file. This allows using arrays instead of maps to store the file, and avoids unnecessary string operations.
2014-01-09Fix GL emulation problems that caused particles and ground to disappear in ↵Jukka Jylänki
Bananabread demo, caused by previous commit https://github.com/kripken/emscripten/commit/fc5dd62fc359397245aca85b1cc847393ba5858f that only partially tracked the changes to the FFP emulation state.
2014-01-03fix output in glGetFramebufferAttachmentParameterivAlon Zakai
2014-01-03properly handle getParameter returning null when it means a null object ↵Alon Zakai
(e.g., no buffer is bound) and not an invalid name