mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
webgl: Fix out-of-bounds readpixels handling.
This fixes the crash in read-pixels-pack-alignment (which was trying to read out of bounds). Fixes #13901
This commit is contained in:
parent
9a10666941
commit
5e5eb18b0b
5 changed files with 122 additions and 21 deletions
|
@ -174,9 +174,6 @@
|
|||
[WebGL test #171: gl.getFramebufferAttachmentParameter(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE) threw exception TypeError: gl.getFramebufferAttachmentParameter is not a function]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #187: gl.checkFramebufferStatus(gl.FRAMEBUFFER) should not be 36053.]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #196: gl.getFramebufferAttachmentParameter(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME) should be [object WebGLTexture\]. Threw exception TypeError: gl.getFramebufferAttachmentParameter is not a function]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
[readPixelsBadArgs.html]
|
||||
type: testharness
|
||||
expected:
|
||||
if os == "linux": CRASH
|
||||
if os == "mac": TIMEOUT
|
||||
[WebGL test #0: testReadPixels]
|
||||
expected: FAIL
|
||||
|
|
@ -1,8 +1,14 @@
|
|||
[read-pixels-pack-alignment.html]
|
||||
type: testharness
|
||||
expected:
|
||||
if os == "linux": CRASH
|
||||
if os == "mac": TIMEOUT
|
||||
[WebGL test #3: successfullyParsed should be true (of type boolean). Was undefined (of type undefined).]
|
||||
[WebGL test #17: pixel should be 255,102,0,255. Was 0,0,0,0.]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #33: pixel should be 255,102,0,255. Was 0,0,0,0.]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #53: pixel should be 255,102,0,255. Was 0,0,0,0.]
|
||||
expected: FAIL
|
||||
|
||||
[WebGL test #61: pixel should be 255,102,0,255. Was 0,0,0,0.]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue