When loading two or more imageviews with the same URL 57/176357/4
authorJoogab Yun <joogab.yun@samsung.com>
Wed, 18 Apr 2018 16:50:48 +0000 (01:50 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Thu, 19 Apr 2018 01:35:10 +0000 (10:35 +0900)
It should not be rendered at not start or loading fail.
check mLoading value in DoSetOnStage() at image-visual.cpp

Change-Id: I920a0a30d9aff202dd2975ad50dc06fa3fec1eef

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 );
       }
 
       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 )
       {
 
       if( loadState == TextureManager::UPLOADED )
       {