mirror of
https://github.com/servo/servo
synced 2026-05-08 16:12:15 +02:00
#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>