[Tizen] Fix to avoid empty texture rendering issue submit/tizen/20181122.072335
authorJiyun Yang <ji.yang@samsung.com>
Thu, 22 Nov 2018 06:12:58 +0000 (15:12 +0900)
committerJiyun Yang <ji.yang@samsung.com>
Thu, 22 Nov 2018 06:14:32 +0000 (15:14 +0900)
This reverts commit 61010a8ae89f1173ad72c74180b5c86b09a62b48.

Change-Id: Iceea3bb81d11da6c3ba86c4c4aa0e4292b0542d1

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 )
       {