From 5c1f783aa9da7b2317df507f57737d6434e24ae7 Mon Sep 17 00:00:00 2001 From: ark Date: Wed, 31 Jan 2024 22:22:58 +0100 Subject: [PATCH] using non alpha channeled texture --- wgpu-hal/src/gles/conv.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/wgpu-hal/src/gles/conv.rs b/wgpu-hal/src/gles/conv.rs index 7b3bf6c8f8..bde69b8629 100644 --- a/wgpu-hal/src/gles/conv.rs +++ b/wgpu-hal/src/gles/conv.rs @@ -115,12 +115,7 @@ impl super::AdapterShared { glow::RGBA, 0, ), - Tf::Etc2Rgba8Unorm => ( - //TODO: this is a lie, it's not sRGB - glow::COMPRESSED_SRGB8_ALPHA8_ETC2_EAC, - glow::RGBA, - 0, - ), + Tf::Etc2Rgba8Unorm => (glow::COMPRESSED_RGBA8_ETC2_EAC, glow::RGBA, 0), Tf::Etc2Rgba8UnormSrgb => (glow::COMPRESSED_SRGB8_ALPHA8_ETC2_EAC, glow::RGBA, 0), Tf::EacR11Unorm => (glow::COMPRESSED_R11_EAC, glow::RED, 0), Tf::EacR11Snorm => (glow::COMPRESSED_SIGNED_R11_EAC, glow::RED, 0),