From 8f7d7ce028c51c626b105762119ff1c61fc05cc0 Mon Sep 17 00:00:00 2001 From: Joshua Groves Date: Sun, 19 Apr 2020 16:32:50 -0230 Subject: [PATCH] [rs] Reverse srgb support in hello-triangle --- wgpu/examples/hello-triangle/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wgpu/examples/hello-triangle/main.rs b/wgpu/examples/hello-triangle/main.rs index f46954c326..5043fb514c 100644 --- a/wgpu/examples/hello-triangle/main.rs +++ b/wgpu/examples/hello-triangle/main.rs @@ -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, )); } }