From 7496a4fb55ce9eefc7c129e4d9d8bdadfbb52e15 Mon Sep 17 00:00:00 2001 From: Davide Tantillo Date: Mon, 29 Sep 2025 11:51:51 +0200 Subject: [PATCH] [ts] Fix webglcontextlost/restored not correctly bound. See #2938. --- spine-ts/spine-webgl/src/WebGL.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spine-ts/spine-webgl/src/WebGL.ts b/spine-ts/spine-webgl/src/WebGL.ts index ece1a9172..6ac632338 100644 --- a/spine-ts/spine-webgl/src/WebGL.ts +++ b/spine-ts/spine-webgl/src/WebGL.ts @@ -47,11 +47,11 @@ export class ManagedWebGLRenderingContext implements Disposable { } } - private contextLostHandler (e: Event) { + private contextLostHandler = (e: Event) => { if (e) e.preventDefault(); } - private contextRestoredHandler () { + private contextRestoredHandler = () => { for (let i = 0, n = this.restorables.length; i < n; i++) this.restorables[i].restore(); }