jabuwu / bevy_spine

A Bevy plugin for Spine
https://docs.rs/bevy_spine
Other
84 stars 5 forks source link

`WebGL: INVALID_OPERATION drawArrays` in WASM build #1

Closed jabuwu closed 1 year ago

jabuwu commented 1 year ago

Destroying Spine entities in the WASM build can cause the application to hang forever.

Bevy issue: https://github.com/bevyengine/bevy/issues/5732

jabuwu commented 1 year ago

I've introduced the feature workaround_5732 which circumvents this problem. It does so by keeping meshes and materials around forever. It is far from the ideal solution.

It might be possible to drop them overtime to avoid running up memory as more and more meshes are created and destroyed, until this is fixed upstream.

jabuwu commented 1 year ago

Fixed in https://github.com/bevyengine/bevy/pull/8446. Removed workaround_5732 in the bevy_main branch.