[Tizen] Fix to avoid empty texture rendering issue submit/tizen/20181128.063102
authorJoogab Yun <joogab.yun@samsung.com>
Wed, 28 Nov 2018 05:25:29 +0000 (14:25 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Wed, 28 Nov 2018 05:25:33 +0000 (14:25 +0900)
This reverts commit 259a2fd4d98e52b6d3bce52062493d26e96c048f.

Change-Id: I68d59a72af66e7105acdd1193da30e4cee60bc6f

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