mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-04 06:39:09 +08:00
[ts] Fix webglcontextlost/restored not correctly bound. See #2938.
This commit is contained in:
parent
201063bbf4
commit
7496a4fb55
@ -47,11 +47,11 @@ export class ManagedWebGLRenderingContext implements Disposable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private contextLostHandler (e: Event) {
|
private contextLostHandler = (e: Event) => {
|
||||||
if (e) e.preventDefault();
|
if (e) e.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
private contextRestoredHandler () {
|
private contextRestoredHandler = () => {
|
||||||
for (let i = 0, n = this.restorables.length; i < n; i++)
|
for (let i = 0, n = this.restorables.length; i < n; i++)
|
||||||
this.restorables[i].restore();
|
this.restorables[i].restore();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user