Skip to content

Commit 7044c1a

Browse files
committed
fix(core): shorten the context recovery header comment
1 parent b610439 commit 7044c1a

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎packages/core/src/runtime/webglContextRecovery.ts‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
/**
2-
* A GPU process crash drops every WebGL context in the page. Scene canvases belong to the
3-
* composition, so the runtime cannot rebuild them; it lets them restore and then asks for
4-
* one repaint after the scene's own restore handlers have run.
5-
*/
1+
/** A lost context is allowed to restore; one repaint follows after the scene's own restore handlers ran. */
62
export function watchSceneWebglContexts(onRestored: () => void): () => void {
73
let frame: number | null = null;
84
// Without preventDefault the browser never restores the context.

0 commit comments

Comments
 (0)