From 5960e20b0cfb6b164f689870abc95ece2a54830f Mon Sep 17 00:00:00 2001 From: Joogab Yun Date: Wed, 28 Nov 2018 14:25:29 +0900 Subject: [PATCH] [Tizen] Fix to avoid empty texture rendering issue This reverts commit 259a2fd4d98e52b6d3bce52062493d26e96c048f. Change-Id: I68d59a72af66e7105acdd1193da30e4cee60bc6f --- .../internal/visuals/texture-manager-impl.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/dali-toolkit/internal/visuals/texture-manager-impl.cpp b/dali-toolkit/internal/visuals/texture-manager-impl.cpp index 1ea95a9b6d..a1e9d8c952 100644 --- a/dali-toolkit/internal/visuals/texture-manager-impl.cpp +++ b/dali-toolkit/internal/visuals/texture-manager-impl.cpp @@ -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 ) { -- 2.34.1