diff options
| author | Ray <raysan5@gmail.com> | 2016-05-01 01:09:48 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2016-05-01 01:09:48 +0200 |
| commit | 1fb874cdc5be59c510b46fd8b1a10b458ad3fb45 (patch) | |
| tree | 1c78586c1acaf9bf165c9b54af4f9f7275eda420 /src | |
| parent | eb36c351cf96be7bbc20a0d65749dbfa34dac716 (diff) | |
| download | raylib-1fb874cdc5be59c510b46fd8b1a10b458ad3fb45.tar.gz raylib-1fb874cdc5be59c510b46fd8b1a10b458ad3fb45.zip | |
Check for WebGL/Webkit extensions
Improve DXT-ETC1 support on HTML5
Diffstat (limited to 'src')
| -rw-r--r-- | src/rlgl.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -969,10 +969,12 @@ void rlglInit(void) // DDS texture compression support if ((strcmp(extList[i], (const char *)"GL_EXT_texture_compression_s3tc") == 0) || + (strcmp(extList[i], (const char *)"GL_WEBGL_compressed_texture_s3tc") == 0) || (strcmp(extList[i], (const char *)"GL_WEBKIT_WEBGL_compressed_texture_s3tc") == 0)) texCompDXTSupported = true; // ETC1 texture compression support - if (strcmp(extList[i], (const char *)"GL_OES_compressed_ETC1_RGB8_texture") == 0) texCompETC1Supported = true; + if ((strcmp(extList[i], (const char *)"GL_OES_compressed_ETC1_RGB8_texture") == 0) || + (strcmp(extList[i], (const char *)"GL_WEBGL_compressed_texture_etc1") == 0)) texCompETC1Supported = true; // ETC2/EAC texture compression support if (strcmp(extList[i], (const char *)"GL_ARB_ES3_compatibility") == 0) texCompETC2Supported = true; |
