[Tizen] Fix to avoid empty texture rendering issue accepted/tizen/unified/20190102.092236 submit/tizen/20190102.024341
authorSunghyun kim <scholb.kim@samsung.com>
Wed, 2 Jan 2019 01:57:09 +0000 (10:57 +0900)
committerSunghyun kim <scholb.kim@samsung.com>
Wed, 2 Jan 2019 01:57:12 +0000 (10:57 +0900)
This reverts commit a6e1c2632c65fb0642a54f18dbd54e9aa673d4b7.

Change-Id: I51a4625fbb35e3d8b58483cfdc94042e8cb9d165

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