When loading two or more imageviews with the same URL
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / visuals / texture-manager-impl.cpp
index dc1c2b9..989320e 100755 (executable)
@@ -229,7 +229,21 @@ TextureSet TextureManager::LoadTexture(
       }
 
       TextureManager::LoadState loadState = GetTextureStateInternal( textureId );
-      loadingStatus = ( loadState == TextureManager::LOADING );
+      switch( loadState )
+      {
+        case TextureManager::NOT_STARTED:
+        case TextureManager::LOADING:
+        case TextureManager::LOAD_FAILED:
+        {
+          loadingStatus = true;
+          break;
+        }
+        default:
+        {
+          loadingStatus = false;
+          break;
+        }
+      }
 
       if( loadState == TextureManager::UPLOADED )
       {