diff options
author | Josh Matthews <josh@joshmatthews.net> | 2019-09-19 17:43:48 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2019-09-20 01:28:22 -0400 |
commit | 7e4cf13f5b1106690f15d84029e31364c0c6907b (patch) | |
tree | b5939f3d101773a43176692b77a4d841ad3afc08 | |
parent | 46b1d8faeeeadcddf136ad99096d2d99da7ea36b (diff) | |
download | servo-7e4cf13f5b1106690f15d84029e31364c0c6907b.tar.gz servo-7e4cf13f5b1106690f15d84029e31364c0c6907b.zip |
webgl: Support RGB color attachments for complete framebuffers.
-rw-r--r-- | components/script/dom/webglframebuffer.rs | 1 | ||||
-rw-r--r-- | tests/wpt/webgl/meta/conformance/textures/misc/tex-input-validation.html.ini | 6 |
2 files changed, 2 insertions, 5 deletions
diff --git a/components/script/dom/webglframebuffer.rs b/components/script/dom/webglframebuffer.rs index 114ede38b01..284a51cf483 100644 --- a/components/script/dom/webglframebuffer.rs +++ b/components/script/dom/webglframebuffer.rs @@ -177,6 +177,7 @@ impl WebGLFramebuffer { constants::RGB5_A1, constants::RGB565, constants::RGBA, + constants::RGB, ][..], &[constants::DEPTH_COMPONENT16][..], &[constants::STENCIL_INDEX8][..], diff --git a/tests/wpt/webgl/meta/conformance/textures/misc/tex-input-validation.html.ini b/tests/wpt/webgl/meta/conformance/textures/misc/tex-input-validation.html.ini index a5e193befaf..9611a8b8c64 100644 --- a/tests/wpt/webgl/meta/conformance/textures/misc/tex-input-validation.html.ini +++ b/tests/wpt/webgl/meta/conformance/textures/misc/tex-input-validation.html.ini @@ -6,9 +6,5 @@ [WebGL test #61: getError expected: INVALID_OPERATION. Was NO_ERROR : colorBufferFormat: RGB internalFormat: RGBA] expected: FAIL - [WebGL test #53: getError expected: INVALID_OPERATION. Was NO_ERROR : colorBufferFormat: RGB internalFormat: RGBA] + [WebGL test #37: getError expected: NO_ERROR. Was INVALID_OPERATION : colorBufferFormat: RGB565 internalFormat: RGB target: TEXTURE_2D border: 0] expected: FAIL - - [WebGL test #34: getError expected: INVALID_OPERATION. Was NO_ERROR : colorBufferFormat: RGB565 internalFormat: RGBA target: TEXTURE_2D border: 0] - expected: FAIL - |