mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
webgl: Add missing RGB8 texture format combination.
This commit is contained in:
parent
24a7f38600
commit
3876d6dbdd
1 changed files with 2 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue