From 2e412ee29f16185899259fe8dff76ec93e85d70e Mon Sep 17 00:00:00 2001 From: halx99 Date: Tue, 14 Jun 2022 15:33:42 +0800 Subject: [PATCH] Take care glGetTexImage func pointer check --- core/renderer/backend/opengl/DeviceInfoGL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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};