Skip to content

Commit 0f8c094

Browse files
bors[bot]grovesNL
andauthored
[rs] Merge gfx-rs#262
262: Reverse srgb in hello-triangle r=kvark a=grovesNL Reverse srgb support in hello-triangle (these were backwards by mistake) Co-authored-by: Joshua Groves <[email protected]>
2 parents ec8b028 + 8f7d7ce commit 0f8c094

File tree

1 file changed

+2
-2
lines changed
  • wgpu/examples/hello-triangle

1 file changed

+2
-2
lines changed

wgpu/examples/hello-triangle/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ fn main() {
144144
{
145145
env_logger::init();
146146
// Temporarily avoid srgb formats for the swapchain on the web
147-
futures::executor::block_on(run(event_loop, window, wgpu::TextureFormat::Bgra8Unorm));
147+
futures::executor::block_on(run(event_loop, window, wgpu::TextureFormat::Bgra8UnormSrgb));
148148
}
149149
#[cfg(target_arch = "wasm32")]
150150
{
@@ -163,7 +163,7 @@ fn main() {
163163
wasm_bindgen_futures::spawn_local(run(
164164
event_loop,
165165
window,
166-
wgpu::TextureFormat::Bgra8UnormSrgb,
166+
wgpu::TextureFormat::Bgra8Unorm,
167167
));
168168
}
169169
}

0 commit comments

Comments
 (0)