mirror of https://github.com/axmolengine/axmol.git
Take care glGetTexImage func pointer check
This commit is contained in:
parent
7dcffeeb9a
commit
2e412ee29f
|
@ -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};
|
||||
|
|
Loading…
Reference in New Issue