Merge pull request #10139 from bruvzg/3.0-s3tc

Revert #378b1e6 for s3tc
This commit is contained in:
Rémi Verschelde 2017-08-07 11:48:41 +02:00 committed by GitHub
commit 79538a4fdd

View file

@ -6905,16 +6905,16 @@ void RasterizerStorageGLES3::initialize() {
config.etc_supported = config.extensions.has("GL_OES_compressed_ETC1_RGB8_texture"); config.etc_supported = config.extensions.has("GL_OES_compressed_ETC1_RGB8_texture");
config.latc_supported = config.extensions.has("GL_EXT_texture_compression_latc"); config.latc_supported = config.extensions.has("GL_EXT_texture_compression_latc");
config.bptc_supported = config.extensions.has("GL_ARB_texture_compression_bptc"); config.bptc_supported = config.extensions.has("GL_ARB_texture_compression_bptc");
//S3TC - not core, implemented as external library (libtxc-dxtn-s2tc0) on Linux distributions with Mesa based open-source drivers and may be not installed by default.
config.s3tc_supported = config.extensions.has("GL_EXT_texture_compression_dxt1") || config.extensions.has("GL_EXT_texture_compression_s3tc") || config.extensions.has("WEBGL_compressed_texture_s3tc");
#ifdef GLES_OVER_GL #ifdef GLES_OVER_GL
config.hdr_supported = true; config.hdr_supported = true;
config.etc2_supported = false; config.etc2_supported = false;
config.rgtc_supported = true; //supported by spec config.rgtc_supported = true; //RGTC - core since OpenGL version 3.0
config.s3tc_supported = true; //supported by spec
#else #else
config.etc2_supported = true; config.etc2_supported = true;
config.hdr_supported = false; config.hdr_supported = false;
config.rgtc_supported = config.extensions.has("GL_EXT_texture_compression_rgtc"); config.rgtc_supported = config.extensions.has("GL_EXT_texture_compression_rgtc") || config.extensions.has("GL_ARB_texture_compression_rgtc");
config.s3tc_supported = config.extensions.has("GL_EXT_texture_compression_dxt1") || config.extensions.has("GL_EXT_texture_compression_s3tc") || config.extensions.has("WEBGL_compressed_texture_s3tc");
#endif #endif
config.pvrtc_supported = config.extensions.has("GL_IMG_texture_compression_pvrtc"); config.pvrtc_supported = config.extensions.has("GL_IMG_texture_compression_pvrtc");