diff --git a/comfy-wgpu/src/device.rs b/comfy-wgpu/src/device.rs index 3b38765..4d39c84 100644 --- a/comfy-wgpu/src/device.rs +++ b/comfy-wgpu/src/device.rs @@ -75,9 +75,9 @@ pub async fn create_graphics_context( info!("Supported formats: {:?}", supported_formats); #[cfg(not(target_arch = "wasm32"))] - let preferred_format = wgpu::TextureFormat::Bgra8UnormSrgb; + let preferred_format = wgpu::TextureFormat::Bgra8Unorm; #[cfg(target_arch = "wasm32")] - let preferred_format = wgpu::TextureFormat::Rgba8UnormSrgb; + let preferred_format = wgpu::TextureFormat::Bgra8Unorm; let monitor_surface_format = if supported_formats.contains(&preferred_format) { diff --git a/comfy-wgpu/src/texture.rs b/comfy-wgpu/src/texture.rs index 90c5ba6..fa343cc 100644 --- a/comfy-wgpu/src/texture.rs +++ b/comfy-wgpu/src/texture.rs @@ -232,7 +232,7 @@ impl Texture { let format = if is_normal_map { wgpu::TextureFormat::Rgba8Unorm } else { - wgpu::TextureFormat::Rgba8UnormSrgb + wgpu::TextureFormat::Rgba8Unorm }; Self::from_image_with_format(