Skip to content

Commit

Permalink
Workaround Emscripten bug with GL_PIXEL_UNPACK_BUFFER
Browse files Browse the repository at this point in the history
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
csmartdalton committed Mar 12, 2024
1 parent 26d559a commit 5850253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .rive_renderer
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a91a111d0720d405d6b45ecbf00dc5adf1e0957c
eed0d160e9931aa271227c97748af17b0d094472

0 comments on commit 5850253

Please sign in to comment.