We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b20277 commit 8f7d7ceCopy full SHA for 8f7d7ce
wgpu/examples/hello-triangle/main.rs
@@ -144,7 +144,7 @@ fn main() {
144
{
145
env_logger::init();
146
// Temporarily avoid srgb formats for the swapchain on the web
147
- futures::executor::block_on(run(event_loop, window, wgpu::TextureFormat::Bgra8Unorm));
+ futures::executor::block_on(run(event_loop, window, wgpu::TextureFormat::Bgra8UnormSrgb));
148
}
149
#[cfg(target_arch = "wasm32")]
150
@@ -163,7 +163,7 @@ fn main() {
163
wasm_bindgen_futures::spawn_local(run(
164
event_loop,
165
window,
166
- wgpu::TextureFormat::Bgra8UnormSrgb,
+ wgpu::TextureFormat::Bgra8Unorm,
167
));
168
169
0 commit comments