@@ -1004,9 +1004,9 @@ void RenderDeviceGLImpl::InitAdapterInfo()
10041004
10051005 Features.ShaderResourceQueries = Features.SeparablePrograms ;
10061006
1007- const bool bRGTC = CheckExtension (" GL_ARB_texture_compression_rgtc" );
1008- const bool bBPTC = CheckExtension (" GL_ARB_texture_compression_bptc" );
1009- const bool bS3TC = CheckExtension (" GL_EXT_texture_compression_s3tc" );
1007+ const bool bRGTC = CheckExtension (" GL_EXT_texture_compression_rgtc " ) || CheckExtension ( " GL_ARB_texture_compression_rgtc" );
1008+ const bool bBPTC = CheckExtension (" GL_EXT_texture_compression_bptc " ) || CheckExtension ( " GL_ARB_texture_compression_bptc" );
1009+ const bool bS3TC = CheckExtension (" GL_EXT_texture_compression_s3tc" ) || CheckExtension ( " GL_WEBGL_compressed_texture_s3tc " ) ;
10101010 ENABLE_FEATURE (TextureCompressionBC, bRGTC && bBPTC && bS3TC);
10111011
10121012 // Buffer properties
@@ -1117,9 +1117,9 @@ void RenderDeviceGLImpl::FlagSupportedTexFormats()
11171117 const auto bDekstopGL = DeviceInfo.Type == RENDER_DEVICE_TYPE_GL;
11181118 const auto bGLES30OrAbove = DeviceInfo.Type == RENDER_DEVICE_TYPE_GLES && DeviceInfo.APIVersion >= Version{3 , 0 };
11191119
1120- const bool bRGTC = CheckExtension (" GL_ARB_texture_compression_rgtc " ) || CheckExtension (" GL_EXT_texture_compression_rgtc " );
1121- const bool bBPTC = CheckExtension (" GL_ARB_texture_compression_bptc " ) || CheckExtension (" GL_EXT_texture_compression_bptc " );
1122- const bool bS3TC = CheckExtension (" GL_EXT_texture_compression_s3tc" );
1120+ const bool bRGTC = CheckExtension (" GL_EXT_texture_compression_rgtc " ) || CheckExtension (" GL_ARB_texture_compression_rgtc " );
1121+ const bool bBPTC = CheckExtension (" GL_EXT_texture_compression_bptc " ) || CheckExtension (" GL_ARB_texture_compression_bptc " );
1122+ const bool bS3TC = CheckExtension (" GL_EXT_texture_compression_s3tc" ) || CheckExtension ( " GL_WEBGL_compressed_texture_s3tc " ) ;
11231123 const bool bTexNorm16 = bDekstopGL || CheckExtension (" GL_EXT_texture_norm16" ); // Only for ES3.1+
11241124 const bool bTexSwizzle = bDekstopGL || bGLES30OrAbove || CheckExtension (" GL_ARB_texture_swizzle" );
11251125
0 commit comments