mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
The tex-3d-size-limit.html test verifies that TexImage3D errors out with gl.INVALID_VALUE if the width / height / depth parameters are greater than gl.MAX_3D_TEXTURE_SIZE / 2 ** level, in accordance with the mipmap levels definition. This patch adds this checks, and fixes a s/depth/level/ typo, and should stabilize tex-3d-size-limit.html: all its sub-tests will succeed until the first call to (not implemented) TexSubImage3D, that will end the test. It's still possible for the test to fail on environments where gl.MAX_3D_TEXTURE_SIZE is not 8192 (because the numbering of tests will be different), and this will have to be until we make all sub-tests pass, i.e. TexSubImage3D is implemented. Testing: A bunch of expected failures are removed. Fixes: https://github.com/servo/servo/issues/44280 Signed-off-by: Simon Martin <simon@nasilyan.com>