From 9f606c8a6d52d6ef7a69c6f455a8965dc0dd44e2 Mon Sep 17 00:00:00 2001 From: Jinlei Li Date: Wed, 6 Jul 2022 11:37:26 +0800 Subject: [PATCH] gl: fix depth stencil texture format capability (#2854) * gl: fix depth stencil texture format capabilitys * Update CHANGELOG Co-authored-by: Connor Fitzgerald --- CHANGELOG.md | 4 +++- wgpu-hal/src/gles/adapter.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c71c9da01..636030b459 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,11 +45,13 @@ Bottom level categories: #### DX12 - `DownlevelCapabilities::default()` now returns the `ANISOTROPIC_FILTERING` flag set to true so DX12 lists `ANISOTROPIC_FILTERING` as true again by @cwfitzgerald in [#2851](https://github.com/gfx-rs/wgpu/pull/2851) +#### GLES +- gl: fix depth stencil texture format capability by @jinleili in [#2854](https://github.com/gfx-rs/wgpu/pull/2854) + ### Documentation - Update present_mode docs as most of them don't automatically fall back to Fifo anymore. by @Elabajaba in [#2855](https://github.com/gfx-rs/wgpu/pull/2855) - ## wgpu-0.13.1 (2022-07-02) ### Bug Fixes diff --git a/wgpu-hal/src/gles/adapter.rs b/wgpu-hal/src/gles/adapter.rs index 14beea6dac..99976c8172 100644 --- a/wgpu-hal/src/gles/adapter.rs +++ b/wgpu-hal/src/gles/adapter.rs @@ -635,7 +635,7 @@ impl crate::Adapter for super::Adapter { // "TEXTURE IMAGE LOADS AND STORES" of OpenGLES-3.2 spec. let empty = Tfc::empty(); let unfilterable = Tfc::SAMPLED; - let depth = Tfc::SAMPLED | Tfc::DEPTH_STENCIL_ATTACHMENT; + let depth = Tfc::SAMPLED | Tfc::MULTISAMPLE | Tfc::DEPTH_STENCIL_ATTACHMENT; let filterable = unfilterable | Tfc::SAMPLED_LINEAR; let renderable = unfilterable | Tfc::COLOR_ATTACHMENT | Tfc::MULTISAMPLE | Tfc::MULTISAMPLE_RESOLVE;