mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-02-16 17:02:32 +00:00
Allow ETC2 in OpenGL if ES3 compatible (#5568)
* Allow ETC on OpenGL if ES3 compatible * Update changelog
This commit is contained in:
parent
6941e30b37
commit
53dd49f839
@ -128,6 +128,7 @@ Bottom level categories:
|
||||
- Log an error when GLES texture format heuristics fail. By @PolyMeilex in [#5266](https://github.com/gfx-rs/wgpu/issues/5266)
|
||||
- Cache the sample count to keep `get_texture_format_features` cheap. By @Dinnerbone in [#5346](https://github.com/gfx-rs/wgpu/pull/5346)
|
||||
- Mark `DEPTH32FLOAT_STENCIL8` as supported in GLES. By @Dinnerbone in [#5370](https://github.com/gfx-rs/wgpu/pull/5370)
|
||||
- Desktop GL now also supports `TEXTURE_COMPRESSION_ETC2`. By @Valaphee in [#5568](https://github.com/gfx-rs/wgpu/pull/5568)
|
||||
|
||||
#### Naga
|
||||
|
||||
|
@ -527,8 +527,7 @@ impl super::Adapter {
|
||||
let has_etc = if cfg!(any(webgl, Emscripten)) {
|
||||
extensions.contains("WEBGL_compressed_texture_etc")
|
||||
} else {
|
||||
// This is a required part of GLES3, but not part of Desktop GL at all.
|
||||
es_ver.is_some()
|
||||
es_ver.is_some() || extensions.contains("GL_ARB_ES3_compatibility")
|
||||
};
|
||||
features.set(wgt::Features::TEXTURE_COMPRESSION_ETC2, has_etc);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user