diff --git a/core/renderer/backend/opengl/DeviceInfoGL.cpp b/core/renderer/backend/opengl/DeviceInfoGL.cpp index 49b718633b..7d651a36f4 100644 --- a/core/renderer/backend/opengl/DeviceInfoGL.cpp +++ b/core/renderer/backend/opengl/DeviceInfoGL.cpp @@ -69,7 +69,7 @@ static bool checkReallySupportsASTC() auto error = glGetError(); #if CC_TARGET_PLATFORM != CC_PLATFORM_ANDROID - if (!error) + if (!error && glGetTexImage) { // read pixel RGB: should be: 255, 128, 0 uint8_t pixels[TEXTURE_DIM * TEXTURE_DIM * 4] = {0};