Take care glGetTexImage func pointer check

This commit is contained in:
halx99 2022-06-14 15:33:42 +08:00
parent 7dcffeeb9a
commit 2e412ee29f
1 changed files with 1 additions and 1 deletions

View File

@ -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};