Skip to content

Commit

Permalink
[WebGL] Return only RGBA swapchain formats
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon-F authored Mar 25, 2021
1 parent 4619678 commit 34dc1d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/gl/src/window/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ pub struct Surface {

impl Surface {
fn swapchain_formats(&self) -> Vec<f::Format> {
vec![f::Format::Rgba8Unorm, f::Format::Bgra8Unorm]
vec![f::Format::Rgba8Srgb, f::Format::Rgba8Unorm]
}

pub(crate) unsafe fn present(
Expand Down

0 comments on commit 34dc1d9

Please sign in to comment.