[Tizen] Fix to avoid empty texture rendering issue accepted/tizen/unified/20181212.062445 submit/tizen/20181210.053315
authorSeungho, Baek <sbsh.baek@samsung.com>
Mon, 10 Dec 2018 04:54:04 +0000 (13:54 +0900)
committerSeungho, Baek <sbsh.baek@samsung.com>
Mon, 10 Dec 2018 04:54:06 +0000 (13:54 +0900)
This reverts commit 8b72c6841f5d4090a2d8263972d39ced466226ae.

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