summaryrefslogtreecommitdiff
path: root/src/library_gl.js
AgeCommit message (Collapse)Author
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
2014-01-01ensure we add precision in gl emulation to both fragment and vertex shadersAlon Zakai
2014-01-01fix gl typosAlon Zakai
2013-12-17add OpenGL Desktop/ES 2.0 hardware instancing extensions compatibility functionsAntoine Lambert
2013-12-17use GL_ASSERTIONS instead of ASSERTIONSAntoine Lambert
2013-12-17add support for WebGL hardware instancing through extension ↵Antoine Lambert
ANGLE_instanced_arrays
2013-12-13Fix glGetIntegerv(GL_SHADER_BINARY_FORMATS) to not write anything to the out ↵Jukka Jylänki
pointer, since the output array is empty.
2013-12-13Generate an GL_INVALID_VALUE error when user calls glGetXXX() with a null ↵Jukka Jylänki
out pointer instead of crashing. Fix glGetIntegerv of GL_SHADER_BINARY_FORMATS to not write anything out to the provided buffer.
2013-12-03Fixed glSampleCoverage signature (vi to vii)onnoj
The signature for glSampleCoverage was incorrect (vi); glSampleCoverage takes two arguments (vii). See: https://www.khronos.org/registry/webgl/specs/1.0.2/#5.14.3 and http://www.khronos.org/opengles/sdk/docs/man/xhtml/glSampleCoverage.xml
2013-11-28cleanup and consolidate glGetAlon Zakai
2013-11-27Merge pull request #1863 from juj/gl_emulation_opts_rebasedAlon Zakai
Optimize GL emulation layer.
2013-11-27GL_IMPLEMENTATION_COLOR_READ_TYPE and GL_IMPLEMENTATION_COLOR_READ_FORMATAlon Zakai
2013-11-27Cast GL emulation matrix version numbers back to integers after increment. ↵Jukka Jylänki
Code cleanup and clarify comments.
2013-11-26Add new GL emulation related #define GL_FFP_ONLY which is used to signal ↵Jukka Jylänki
that the C/C++ client code will not use any GL shaders, allowing more efficient optimizations to be performed in the FFP GL emulation code knowing that it doesn't need to worry about shader programs from the user.
2013-11-26Skip looping twice over textures in GL emulation renderer prepare() code. ↵Jukka Jylänki
Clean up unnecessary variable.
2013-11-26Name GL functions that show up as anonymous in the profile.Jukka Jylänki
2013-11-26Version immediate mode GL matrix stack data, so that the matrices don't need ↵Jukka Jylänki
to be reset on each program if they didn't change.
2013-11-26Fix GL logging message when GL_UNSAFE_OPTS is disabled.Jukka Jylänki