mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-09-26 04:05:58 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user