Files
servo/components/script/dom/webgl
Sam 97990a2615 webgl: correctly handle corner case of active texture (the one at MAX_COMBINED_TEXTURE_IMAGE_UNITS) (#42660)
#42639 was actually the real issue, just solved less ideally. Instead of
doing negative checks, which are easy to go wrong like before, we know
do positive check which is more clear IMO. Because counting of units is
0-based, we need to not include upper limit.

WebGL spec is a mess, so I will rather link this MDN:
https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/activeTexture#exceptions

Testing: Added test to WebGL CTS:
https://github.com/KhronosGroup/WebGL/pull/3757, live at:
https://sagudev.github.io/WebGL/sdk/tests/conformance/textures/misc/texture-active-bind.html
Fixes: #42639

Co-authored-by: Weixie Cui <cuiweixie@gmail.com>

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-02-16 18:58:39 +00:00
..