webgl: Implement component narrowing checks for CopyTexImage2D.

This commit is contained in:
Josh Matthews 2019-09-19 17:45:19 -04:00
parent 7e4cf13f5b
commit 778b48fa47
2 changed files with 41 additions and 11 deletions

View file

@ -1,11 +0,0 @@
[copy-tex-image-2d-formats.html]
bug: https://github.com/servo/servo/issues/20595
[WebGL test #32: getError expected: INVALID_OPERATION. Was NO_ERROR : should not be able to copyTexImage2D ALPHA from RGB]
expected: FAIL
[WebGL test #40: getError expected: INVALID_OPERATION. Was NO_ERROR : should not be able to copyTexImage2D RGBA from RGB]
expected: FAIL
[WebGL test #36: getError expected: INVALID_OPERATION. Was NO_ERROR : should not be able to copyTexImage2D LUMINANCE_ALPHA from RGB]
expected: FAIL