KhronosGroup / KhronosGroup/WebGL
Bug in WebGL 2.0 getFramebufferAttachmentParameter test for STENCIL buffer
- Dominant language
- HTML
- Stars
- 2.9k
- Forks
- 703
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 4
Description
The getFramebufferAttachmentParameter tests in sdk/tests/js/tests/gl-object-get-calls.js for WebGL 2.0, for the default framebuffer, assert that the FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE is non-zero. This is dubious, since the stencil buffer is disabled by default in the context creation attributes. This should be fixed, either by asserting that the size is zero, or, ideally, testing two contexts, one with stencil enabled and one with it disabled.
See https://github.com/KhronosGroup/WebGL/pull/1421 which has some other problems and probably won't be committed.
Contributor guide
Research direction
Start in sdk/tests/js/tests/gl-object-get-calls.js and inspect the WebGL 2.0 getFramebufferAttachmentParameter tests for the default framebuffer. Check the context creation attributes and the stencil-size assertion. Done means the tests correctly cover the disabled-stencil case and, if implemented, a context with stencil enabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics, testing
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100