From 3f3d1ed1cba61015aa47a6ad9812ae0d30316cc5 Mon Sep 17 00:00:00 2001 From: mattkae Date: Sat, 22 Jan 2022 13:57:55 -0500 Subject: (mkosarek) Added dots to the spring bodied rectangle --- 2d/softbody/softbody_2/dist/output.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '2d/softbody/softbody_2/dist/output.js') diff --git a/2d/softbody/softbody_2/dist/output.js b/2d/softbody/softbody_2/dist/output.js index 864fed6..2502d5e 100644 --- a/2d/softbody/softbody_2/dist/output.js +++ b/2d/softbody/softbody_2/dist/output.js @@ -2573,6 +2573,14 @@ var ASM_CONSTS = { } } + function _glBufferSubData(target, offset, size, data) { + if (GL.currentContext.version >= 2) { // WebGL 2 provides new garbage-free entry points to call to WebGL. Use those always when possible. + GLctx.bufferSubData(target, offset, HEAPU8, data, size); + return; + } + GLctx.bufferSubData(target, offset, HEAPU8.subarray(data, data+size)); + } + function _glClear(x0) { GLctx['clear'](x0) } function _glClearColor(x0, x1, x2, x3) { GLctx['clearColor'](x0, x1, x2, x3) } @@ -3062,6 +3070,7 @@ var asmLibraryArg = { "glBindBuffer": _glBindBuffer, "glBindVertexArray": _glBindVertexArray, "glBufferData": _glBufferData, + "glBufferSubData": _glBufferSubData, "glClear": _glClear, "glClearColor": _glClearColor, "glClearDepth": _glClearDepth, -- cgit v1.2.1