|
|
@ -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.
|
|
|
|
// sRGB surfaces, you'll need to account for that when drawing to the frame.
|
|
|
|
let surface_format = surface_caps.formats.iter()
|
|
|
|
let surface_format = surface_caps.formats.iter()
|
|
|
|
.copied()
|
|
|
|
.copied()
|
|
|
|
.filter(|f| f.describe().srgb)
|
|
|
|
.filter(|f| f.is_srgb())
|
|
|
|
.next()
|
|
|
|
.next()
|
|
|
|
.unwrap_or(surface_caps.formats[0]);
|
|
|
|
.unwrap_or(surface_caps.formats[0]);
|
|
|
|
let config = wgpu::SurfaceConfiguration {
|
|
|
|
let config = wgpu::SurfaceConfiguration {
|
|
|
|