From 3876d6dbdde03173a99104e120a3321dfcbcbebd Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Wed, 22 Apr 2020 14:20:04 -0400 Subject: [PATCH] webgl: Add missing RGB8 texture format combination. --- components/canvas/webgl_thread.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/canvas/webgl_thread.rs b/components/canvas/webgl_thread.rs index 5361267179b..0b72cc7d37b 100644 --- a/components/canvas/webgl_thread.rs +++ b/components/canvas/webgl_thread.rs @@ -2775,7 +2775,8 @@ fn image_to_tex_image_data( match (format, data_type) { (TexFormat::RGBA, TexDataType::UnsignedByte) | (TexFormat::RGBA8, TexDataType::UnsignedByte) => pixels, - (TexFormat::RGB, TexDataType::UnsignedByte) => { + (TexFormat::RGB, TexDataType::UnsignedByte) | + (TexFormat::RGB8, TexDataType::UnsignedByte) => { for i in 0..pixel_count { let rgb = { let rgb = &pixels[i * 4..i * 4 + 3];