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];