Skip to content

Commit

Permalink
Do blending in srgb space (for HelloPaint)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmerlin committed Feb 28, 2024
1 parent e58b66f commit 922f1f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui-wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ pub fn preferred_framebuffer_format(
for &format in formats {
if matches!(
format,
wgpu::TextureFormat::Rgba8Unorm | wgpu::TextureFormat::Bgra8Unorm
wgpu::TextureFormat::Rgba8UnormSrgb | wgpu::TextureFormat::Bgra8UnormSrgb
) {
return Ok(format);
}
Expand Down

0 comments on commit 922f1f7

Please sign in to comment.