diff --git a/cocos/platform/CCImage.cpp b/cocos/platform/CCImage.cpp index a46f1e3b84..3c05de5dd6 100644 --- a/cocos/platform/CCImage.cpp +++ b/cocos/platform/CCImage.cpp @@ -1532,7 +1532,7 @@ bool Image::initWithETCData(const unsigned char* data, ssize_t dataLen, bool own else compressedFormat = backend::PixelFormat::NONE; - if (compressedFormat != backend::PixelFormat::NONE && false) + if (compressedFormat != backend::PixelFormat::NONE) { //old opengl version has no define for GL_ETC1_RGB8_OES, add macro to make compiler happy. #if defined(GL_ETC1_RGB8_OES) || defined(CC_USE_METAL)