[Tizen] Fix to avoid empty texture rendering issue submit/tizen/20190114.061957
authorJiyun Yang <ji.yang@samsung.com>
Mon, 14 Jan 2019 05:45:35 +0000 (14:45 +0900)
committerJiyun Yang <ji.yang@samsung.com>
Mon, 14 Jan 2019 05:46:37 +0000 (14:46 +0900)
This reverts commit 8c9bbffdab6df310d896eb77ea62f76764dde927.

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