aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRay San <raysan5@gmail.com>2015-10-26 11:50:13 +0100
committerRay San <raysan5@gmail.com>2015-10-26 11:50:13 +0100
commitd1f099374c1d35b82b2a5d9d5ccf4b133aca25a2 (patch)
treed84a95d954f5a4af152afe298af60afb4fef8c9b /src
parentafdf357fbee7f01535bddefb4e62cb1308ed55b5 (diff)
downloadraylib-d1f099374c1d35b82b2a5d9d5ccf4b133aca25a2.tar.gz
raylib-d1f099374c1d35b82b2a5d9d5ccf4b133aca25a2.zip
Added support for s3tc compression on web
Diffstat (limited to 'src')
-rw-r--r--src/rlgl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rlgl.c b/src/rlgl.c
index 797833e6..ebff0d53 100644
--- a/src/rlgl.c
+++ b/src/rlgl.c
@@ -1008,7 +1008,8 @@ void rlglInit(void)
#endif
// DDS texture compression support
- if (strcmp(extList[i], (const char *)"GL_EXT_texture_compression_s3tc") == 0) texCompDXTSupported = true;
+ if ((strcmp(extList[i], (const char *)"GL_EXT_texture_compression_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;