+
+ // If we fail to load the animated image, we will try to load as a normal image.
+ if(!mAnimatedImageLoading)
+ {
+ mImageUrls = new ImageCache::UrlList();
+ mImageUrls->reserve(SINGLE_IMAGE_COUNT);
+
+ for(unsigned int i = 0; i < SINGLE_IMAGE_COUNT; ++i)
+ {
+ ImageCache::UrlStore urlStore;
+ urlStore.mTextureId = TextureManager::INVALID_TEXTURE_ID;
+ urlStore.mUrl = imageUrl;
+ mImageUrls->push_back(urlStore);
+ }
+ mFrameCount = SINGLE_IMAGE_COUNT;
+ }