[Tizen] Fix to avoid empty texture rendering issue. 29/191329/3 accepted/tizen/5.0/unified/20181102.023235 accepted/tizen/unified/20181018.000401 submit/tizen/20181016.130058 submit/tizen_5.0/20181101.000005
authordongsug.song <dongsug.song@samsung.com>
Tue, 16 Oct 2018 05:42:31 +0000 (14:42 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Tue, 16 Oct 2018 05:45:39 +0000 (14:45 +0900)
- Universal Guide Thumbnail is displayed abnormally.

Change-Id: I4ed69b0e8682aa295c00e8f32fe9a9880edca68e

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