Skip to content

Commit c7b3588

Browse files
authored
Fix PVRTC textures on iOS when using automatic extension enabling (emscripten-core#9622)
1 parent 69c975f commit c7b3588

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/library_webgl.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,10 @@ var LibraryGL = {
976976
"WEBGL_compressed_texture_pvrtc", "EXT_color_buffer_half_float", "WEBGL_color_buffer_float",
977977
"EXT_sRGB", "WEBGL_compressed_texture_etc1", "EXT_disjoint_timer_query",
978978
"WEBGL_compressed_texture_etc", "WEBGL_compressed_texture_astc", "EXT_color_buffer_float",
979-
"WEBGL_compressed_texture_s3tc_srgb", "EXT_disjoint_timer_query_webgl2"];
979+
"WEBGL_compressed_texture_s3tc_srgb", "EXT_disjoint_timer_query_webgl2",
980+
// Old style prefixed forms of extensions (but still currently used on e.g. iPhone Xs as
981+
// tested on iOS 12.4.1):
982+
"WEBKIT_WEBGL_compressed_texture_pvrtc"];
980983

981984
function shouldEnableAutomatically(extension) {
982985
var ret = false;

0 commit comments

Comments
 (0)