Reverse srgb support in hello-triangle

This commit is contained in:
Joshua Groves
2020-04-19 16:32:50 -02:30
parent 644cd76cae
commit a75100209e

View File

@@ -144,7 +144,7 @@ fn main() {
{
env_logger::init();
// Temporarily avoid srgb formats for the swapchain on the web
futures::executor::block_on(run(event_loop, window, wgpu::TextureFormat::Bgra8Unorm));
futures::executor::block_on(run(event_loop, window, wgpu::TextureFormat::Bgra8UnormSrgb));
}
#[cfg(target_arch = "wasm32")]
{
@@ -163,7 +163,7 @@ fn main() {
wasm_bindgen_futures::spawn_local(run(
event_loop,
window,
wgpu::TextureFormat::Bgra8UnormSrgb,
wgpu::TextureFormat::Bgra8Unorm,
));
}
}