Skip to content

Commit

Permalink
Merge pull request #516 from splashdust/patch-1
Browse files Browse the repository at this point in the history
Correct outdated line of example code in surface tutorial
  • Loading branch information
sotrh authored Dec 16, 2023
2 parents 8262735 + e165d8c commit 7ea7dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/beginner/tutorial2-surface/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ The `limits` field describes the limit of certain types of resources that we can
// sRGB surfaces, you'll need to account for that when drawing to the frame.
let surface_format = surface_caps.formats.iter()
.copied()
.filter(|f| f.describe().srgb)
.filter(|f| f.is_srgb())
.next()
.unwrap_or(surface_caps.formats[0]);
let config = wgpu::SurfaceConfiguration {
Expand Down

0 comments on commit 7ea7dbe

Please sign in to comment.