mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Update WR (removal of RGB8, which isn't supported on some hardware).
Instead, we convert any source RGB8 images into RGBx (with an opaque alpha channel).
This commit is contained in:
parent
8e226fe9ff
commit
3f2ebfa422
3 changed files with 33 additions and 42 deletions
|
@ -487,7 +487,7 @@ impl<VR: WebVRRenderHandler + 'static, OB: WebGLThreadObserver> WebGLThread<VR,
|
|||
width: size.width as u32,
|
||||
height: size.height as u32,
|
||||
stride: None,
|
||||
format: if alpha { webrender_api::ImageFormat::BGRA8 } else { webrender_api::ImageFormat::RGB8 },
|
||||
format: webrender_api::ImageFormat::BGRA8,
|
||||
offset: 0,
|
||||
is_opaque: !alpha,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue