aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sokol_gfx.h5
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");