mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
e012c3f393
Before this change, the entire byte buffer would be passed to WebGL, even though its size may be (much) larger than the source data. Remakably, this hasn't resulted in any problems until the use of glBufferSubData, which require the passed data fits the buffer size. As a bonus, this fix should speed up the wasm port by virtue of passing much less data across the wasm<->js barrier. Signed-off-by: Elias Naur <mail@eliasnaur.com>