Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround Emscripten bug with GL_PIXEL_UNPACK_BUFFER
Emscripten has a bug with glTexSubImage2D when a PIXEL_UNPACK_BUFFER is bound. Make the call ourselves directly. Also create a TexelBufferRingWebGL class that we use when storage buffers aren't supported, instead of trying to convert the SSBOs to PIXEL_UNPACK_BUFFERs. This may potentially result in one less copy on platforms like WebGL where buffer mapping isn't supported. Diffs=
- Loading branch information