Skip to content

Commit

Permalink
[rs] Merge gfx-rs#262
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
bors[bot] and grovesNL authored Apr 20, 2020
2 parents ec8b028 + 8f7d7ce commit 0f8c094
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wgpu/examples/hello-triangle/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
{
Expand All @@ -163,7 +163,7 @@ fn main() {
wasm_bindgen_futures::spawn_local(run(
event_loop,
window,
wgpu::TextureFormat::Bgra8UnormSrgb,
wgpu::TextureFormat::Bgra8Unorm,
));
}
}

0 comments on commit 0f8c094

Please sign in to comment.