diff options
| author | Andre Weissflog <floooh@gmail.com> | 2020-05-05 19:51:44 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2020-05-05 19:51:56 +0200 |
| commit | cdde23c4a095a5c489e58f705ce72c45eee129d4 (patch) | |
| tree | a688c6836db9f0d37922ac1c3d6bf11ddcd8fa85 | |
| parent | 7c6000a89cc00856dcc083aa2ee323c6a4c1b52e (diff) | |
sokol_gfx.h webgl: fix PVRTC extension check (fixes #288)
| -rw-r--r-- | sokol_gfx.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h index d6fd6c36..edb217b3 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -5068,6 +5068,9 @@ _SOKOL_PRIVATE void _sg_gl_init_caps_gles3(void) { else if (strstr(ext, "_texture_compression_pvrtc")) { has_pvrtc = true; } + else if (strstr(ext, "_compressed_texture_pvrtc")) { + has_pvrtc = true; + } else if (strstr(ext, "_compressed_texture_etc")) { has_etc2 = true; } @@ -5135,7 +5138,7 @@ _SOKOL_PRIVATE void _sg_gl_init_caps_gles2(void) { has_s3tc = strstr(ext, "_texture_compression_s3tc") || strstr(ext, "_compressed_texture_s3tc"); has_rgtc = strstr(ext, "_texture_compression_rgtc"); has_bptc = strstr(ext, "_texture_compression_bptc"); - has_pvrtc = strstr(ext, "_texture_compression_pvrtc"); + has_pvrtc = strstr(ext, "_texture_compression_pvrtc") || strstr(ext, "_compressed_texture_pvrtc"); has_etc2 = strstr(ext, "_compressed_texture_etc"); has_texture_float = strstr(ext, "_texture_float"); has_texture_float_linear = strstr(ext, "_texture_float_linear"); |