[Webkit-unassigned] [Bug 218305] WebGL context remains in memory after calling loseContext()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 3 10:25:41 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=218305

--- Comment #3 from Philip <philipbell at google.com> ---
Some additional context:
loseContext is used in popular WebGL libraries including Three.js and PixiJS. 
Without this method their context management code fails.

Three.js manages context directly in the renderer code:
https://github.com/mrdoob/three.js/blob/3989bb4a00a9f38b1df5dc02bcbc1e5a1b80df53/src/renderers/WebGLRenderer.js#L345-L357

PixiJS has a component dedicated to context management:
https://github.com/pixijs/pixi.js/blob/9ff49a23670bdb0ed864d4e53fb91d524eab59f2/packages/core/src/context/ContextSystem.ts#L248-L262

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201103/9bb9375a/attachment.htm>


More information about the webkit-unassigned mailing list