diff options
author | Glenn Watson <github@intuitionlibrary.com> | 2017-06-16 15:27:22 +1000 |
---|---|---|
committer | Glenn Watson <github@intuitionlibrary.com> | 2017-06-16 15:27:22 +1000 |
commit | e7b1e041c8c049f52b5083f89ced893cd5a31370 (patch) | |
tree | 35d4228187709e7d8b1878e9d90bbb72f7c1cb67 /components/script/dom/webglrenderingcontext.rs | |
parent | e3a52536b650f4aeb951b474936a0b67821f112e (diff) | |
download | servo-e7b1e041c8c049f52b5083f89ced893cd5a31370.tar.gz servo-e7b1e041c8c049f52b5083f89ced893cd5a31370.zip |
Update WR (CPU text optimizations, image format renames).
Diffstat (limited to 'components/script/dom/webglrenderingcontext.rs')
-rw-r--r-- | components/script/dom/webglrenderingcontext.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/webglrenderingcontext.rs b/components/script/dom/webglrenderingcontext.rs index 3b8ee165bce..f2043cf3eb2 100644 --- a/components/script/dom/webglrenderingcontext.rs +++ b/components/script/dom/webglrenderingcontext.rs @@ -690,9 +690,9 @@ impl WebGLRenderingContext { let size = Size2D::new(img.width as i32, img.height as i32); - // For now Servo's images are all stored as RGBA8 internally. + // For now Servo's images are all stored as BGRA8 internally. let mut data = match img.format { - PixelFormat::RGBA8 => img.bytes.to_vec(), + PixelFormat::BGRA8 => img.bytes.to_vec(), _ => unimplemented!(), }; |