mirror of https://github.com/axmolengine/axmol.git
Merge pull request #636 from minggo/iss923_addImageAsync
fixed #923: cache texture with correct image type
This commit is contained in:
commit
9f02cfd2aa
|
@ -137,6 +137,7 @@ static void* loadImage(void* data)
|
||||||
ImageInfo *pImageInfo = new ImageInfo();
|
ImageInfo *pImageInfo = new ImageInfo();
|
||||||
pImageInfo->asyncStruct = pAsyncStruct;
|
pImageInfo->asyncStruct = pAsyncStruct;
|
||||||
pImageInfo->image = pImage;
|
pImageInfo->image = pImage;
|
||||||
|
pImageInfo->imageType = imageType;
|
||||||
|
|
||||||
// put the image info into the queue
|
// put the image info into the queue
|
||||||
pthread_mutex_lock(&s_ImageInfoMutex);
|
pthread_mutex_lock(&s_ImageInfoMutex);
|
||||||
|
|
Loading…
Reference in New Issue