KhronosGroup / KhronosGroup/WebGL
webgl-debug.js should be refactored to use the WEBGL_lose_context
- Dominant language
- HTML
- Stars
- 2.9k
- Forks
- 703
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 4
Description
It would be nice to refactor https://www.khronos.org/registry/webgl/sdk/debug/webgl-debug.js to use the WEBGL_lose_context extension where it exists.
Specifically webgl-debug.js contains code to emulate context lost events and help debug them by throwing and specific times. That code though does not handle extensions in general. Using WEBGL_lose_context would solve that for implementations that support WEBGL_lose_context.
Contributor guide
Research direction
Start with webgl-debug.js at the Khronos WebGL debug SDK URL, focusing on its context-lost event emulation and handling of extensions. Compare that behavior with the WEBGL_lose_context extension and verify that supported implementations use it while the existing debugging behavior remains available where the extension is absent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100