[Tizen] Fix to avoid empty texture rendering issue accepted/tizen/unified/20181204.063745 submit/tizen/20181203.071134
authorHeeyong Song <heeyong.song@samsung.com>
Mon, 3 Dec 2018 05:56:54 +0000 (14:56 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 3 Dec 2018 05:56:57 +0000 (14:56 +0900)
Change-Id: I9755d59970b6f0729c5588bb27ba9f42c9bb6738

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