WebGL: Enabled EAC texture formats via WEBGL_compressed_texture_etc extension. (#3980)

EACR11/EACR11S/EACRG11/EACRG11S fell through to the default case, so on
WebGL the extension was never enabled and EAC textures silently failed
to load. Follow-up to #3487.
This commit is contained in:
U U U
2026-09-18 04:07:22 +00:00
committed by GitHub
parent ca8e4528a2
commit d6890aa5c2

View File

@@ -1761,6 +1761,10 @@ namespace bgfx { namespace gl
case TextureFormat::ETC2:
case TextureFormat::ETC2A:
case TextureFormat::ETC2A1:
case TextureFormat::EACR11:
case TextureFormat::EACR11S:
case TextureFormat::EACRG11:
case TextureFormat::EACRG11S:
return emscripten_webgl_enable_extension(ctx, "WEBGL_compressed_texture_etc");
case TextureFormat::ASTC4x4: