mirror of https://github.com/axmolengine/axmol.git
Merge pull request #6869 from visiblelight/texturecache
adding guard for the callback condition in `TextureCache::addImageAsyncCallBack`
This commit is contained in:
commit
45cce2a692
|
@ -268,7 +268,11 @@ void TextureCache::addImageAsyncCallBack(float dt)
|
||||||
texture = it->second;
|
texture = it->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (asyncStruct->callback)
|
||||||
|
{
|
||||||
asyncStruct->callback(texture);
|
asyncStruct->callback(texture);
|
||||||
|
}
|
||||||
|
|
||||||
if(image)
|
if(image)
|
||||||
{
|
{
|
||||||
image->release();
|
image->release();
|
||||||
|
|
Loading…
Reference in New Issue