Merge pull request #636 from minggo/iss923_addImageAsync

fixed #923: cache texture with correct image type
This commit is contained in:
minggo 2011-12-21 18:53:58 -08:00
commit 9f02cfd2aa
1 changed files with 1 additions and 0 deletions

View File

@ -137,6 +137,7 @@ static void* loadImage(void* data)
ImageInfo *pImageInfo = new ImageInfo();
pImageInfo->asyncStruct = pAsyncStruct;
pImageInfo->image = pImage;
pImageInfo->imageType = imageType;
// put the image info into the queue
pthread_mutex_lock(&s_ImageInfoMutex);