You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…s WebGL Renderer does not need to be deleted
Original issue: #333
Only the canvas renderer can have its emscripten object deleted on cleanup, but not the WebGL one. So just adding a quick check to only delete if it detects the runtime has a canvas renderer.
Diffs=
c579540d1 patch: Only clean up the Renderer object if it is a CanvasRenderer, as WebGL Renderer does not need to be deleted (#6037)
Co-authored-by: Zachary Plata <[email protected]>
Description
the clear() function is not working on the rive instance as it seems it doesn't have the delete function when using the @rive-app/react-webgl package.
Provide a Repro
https://codesandbox.io/s/rive-react-sandbox-m8yz2i
just click on the Cleanup button and you will see the error straight away
Expected behavior
cleanup shouldn't throw error and work normally
The text was updated successfully, but these errors were encountered: