From 63eb0d34f3c7f936e18596bb43b98b4652a094c1 Mon Sep 17 00:00:00 2001 From: samuele3hu Date: Wed, 24 Jun 2015 16:11:36 +0800 Subject: [PATCH] Fix crash of the some Texture2D test case about s3tc on the nexus9(android 5.0.1) --- cocos/base/CCConfiguration.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cocos/base/CCConfiguration.cpp b/cocos/base/CCConfiguration.cpp index ca042a1e40..0667ccc8d7 100644 --- a/cocos/base/CCConfiguration.cpp +++ b/cocos/base/CCConfiguration.cpp @@ -221,7 +221,11 @@ bool Configuration::supportsETC() const bool Configuration::supportsS3TC() const { +#ifdef GL_EXT_texture_compression_s3tc return _supportsS3TC; +#else + return false; +#endif } bool Configuration::supportsATITC() const