diff --git a/.rive_head b/.rive_head index 50b6c71a..18657e5d 100644 --- a/.rive_head +++ b/.rive_head @@ -1 +1 @@ -fdad661369bfa0092a2de92c02bf106da87977de +c579540d144e3f89bc92149920e37eb78540888e diff --git a/js/src/rive.ts b/js/src/rive.ts index abe8be88..5a22bcda 100644 --- a/js/src/rive.ts +++ b/js/src/rive.ts @@ -1678,8 +1678,11 @@ export class Rive { this.stopRendering(); // Clean up any artboard, animation or state machine instances. this.cleanupInstances(); - // Delete the renderer - this.renderer?.delete(); + // Only CanvasRenderer needs a delete for now, not WebGL.. might be a better + // way to detect this in the future + if (this.runtime?.CanvasRenderer) { + this.renderer?.delete(); + } this.renderer = null; // Delete the rive file this.file?.delete();