[Tizen] Fix to avoid empty texture rendering issue submit/tizen/20181113.092512
authorSunghyun kim <scholb.kim@samsung.com>
Tue, 13 Nov 2018 06:31:08 +0000 (15:31 +0900)
committerSunghyun kim <scholb.kim@samsung.com>
Tue, 13 Nov 2018 06:34:16 +0000 (15:34 +0900)
This reverts commit beb477fd925ffbb5acb5d74d0fedaf6fd1c7d1c5.

Change-Id: Iae581e6bfcf05aa21e2fd6d1b469e2010a6da1dc

dali-toolkit/internal/visuals/texture-manager-impl.cpp

index 1ea95a9..a1e9d8c 100644 (file)
@@ -242,7 +242,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 )
       {