diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a9bc5f0fd..9a6329547a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -93,6 +93,7 @@ Bottom level categories: #### GLES - Fixed WebGL not displaying srgb targets correctly if a non-screen filling viewport was previously set. By @Wumpf in [#3093](https://github.com/gfx-rs/wgpu/pull/3093) +- Fix disallowing multisampling for float textures if otherwise supported. By @Wumpf in [#3183](https://github.com/gfx-rs/wgpu/pull/3183) #### deno-webgpu diff --git a/wgpu-hal/src/gles/adapter.rs b/wgpu-hal/src/gles/adapter.rs index 26bcc90fc7..399655febb 100644 --- a/wgpu-hal/src/gles/adapter.rs +++ b/wgpu-hal/src/gles/adapter.rs @@ -716,12 +716,18 @@ impl crate::Adapter for super::Adapter { let half_float_renderable = private_caps_fn( super::PrivateCapabilities::COLOR_BUFFER_HALF_FLOAT, - Tfc::COLOR_ATTACHMENT | Tfc::COLOR_ATTACHMENT_BLEND, + Tfc::COLOR_ATTACHMENT + | Tfc::COLOR_ATTACHMENT_BLEND + | sample_count + | Tfc::MULTISAMPLE_RESOLVE, ); let float_renderable = private_caps_fn( super::PrivateCapabilities::COLOR_BUFFER_FLOAT, - Tfc::COLOR_ATTACHMENT | Tfc::COLOR_ATTACHMENT_BLEND, + Tfc::COLOR_ATTACHMENT + | Tfc::COLOR_ATTACHMENT_BLEND + | sample_count + | Tfc::MULTISAMPLE_RESOLVE, ); match format {