From 65a7bd53602fb2433e69ca518f2bceb2cef33c13 Mon Sep 17 00:00:00 2001 From: halx99 Date: Mon, 31 Aug 2020 16:31:37 +0800 Subject: [PATCH] Remove test code [skip appveyor] [skip travis] --- cocos/platform/CCImage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)