diff --git a/cocos/renderer/CCTexture2D.cpp b/cocos/renderer/CCTexture2D.cpp index c151b855a7..3a6b8cecb2 100644 --- a/cocos/renderer/CCTexture2D.cpp +++ b/cocos/renderer/CCTexture2D.cpp @@ -280,7 +280,6 @@ bool Texture2D::updateWithImage(Image* image, backend::PixelFormat format, int i case PixelFormat::ETC: case PixelFormat::ASTC4: case PixelFormat::ASTC8: - case renderFormat = imagePixelFormat; default: break;