aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglframebuffer.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2019-09-19 17:43:48 -0400
committerJosh Matthews <josh@joshmatthews.net>2019-09-20 01:28:22 -0400
commit7e4cf13f5b1106690f15d84029e31364c0c6907b (patch)
treeb5939f3d101773a43176692b77a4d841ad3afc08 /components/script/dom/webglframebuffer.rs
parent46b1d8faeeeadcddf136ad99096d2d99da7ea36b (diff)
downloadservo-7e4cf13f5b1106690f15d84029e31364c0c6907b.tar.gz
servo-7e4cf13f5b1106690f15d84029e31364c0c6907b.zip
webgl: Support RGB color attachments for complete framebuffers.
Diffstat (limited to 'components/script/dom/webglframebuffer.rs')
-rw-r--r--components/script/dom/webglframebuffer.rs1
1 files changed, 1 insertions, 0 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][..],